-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-local.yml
109 lines (102 loc) · 2.16 KB
/
docker-compose-local.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
version: "3"
services:
market_db:
container_name: market_db
image: postgres:13.4
env_file:
- ./.env
environment:
PGDATA: /data/postgres
volumes:
- postgres:/data/postgres
ports:
- "5432:5432"
networks:
- marketnet
restart: unless-stopped
# JS unique escrow service
escrow_unique:
container_name: escrow_unique
build:
context: ./escrow-unique
dockerfile: ./Dockerfile
env_file:
- ./.env
environment:
- DB_HOST=market_db
- DB_PORT=5432
- DB_NAME=${POSTGRES_DB}
- DB_USER=${POSTGRES_USER}
- DB_PASSWORD=${POSTGRES_PASSWORD}
- ADMIN_SEED=${ADMIN_SEED}
- MatcherContractAddress=${MatcherContractAddress}
networks:
- marketnet
depends_on:
- "market_db"
restart: unless-stopped
escrow_kusama:
container_name: escrow_kusama
build:
context: ./escrow-kusama
dockerfile: ./Dockerfile
env_file:
- ./.env
environment:
- DB_HOST=market_db
- DB_PORT=5432
- DB_NAME=${POSTGRES_DB}
- DB_USER=${POSTGRES_USER}
- DB_PASSWORD=${POSTGRES_PASSWORD}
- ADMIN_SEED=${ADMIN_SEED}
networks:
- marketnet
depends_on:
- "market_db"
- "escrow_unique"
restart: unless-stopped
market_backend:
container_name: market_api
build:
context: ./web-api
dockerfile: ./Dockerfile
expose:
- 5000
ports:
- "5000:5000"
env_file:
- ./.env
environment:
- DB_HOST=market_db
- DB_PORT=5432
- DB_NAME=${POSTGRES_DB}
- DB_USER=${POSTGRES_USER}
- DB_PASSWORD=${POSTGRES_PASSWORD}
- API_PORT=5000
networks:
- marketnet
depends_on:
- "market_db"
- "escrow_unique"
restart: unless-stopped
frontend:
image: apps
container_name: frontend
expose:
- 3000
ports:
- 3000:3000
build:
context: ./ui
dockerfile: Dockerfile.ui.local
networks:
- marketnet
depends_on:
- "market_backend"
restart: unless-stopped
command: bash -c 'yarn start'
networks:
marketnet:
driver: bridge
volumes:
postgres: