-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-development.yml
More file actions
115 lines (107 loc) · 2.13 KB
/
docker-compose-development.yml
File metadata and controls
115 lines (107 loc) · 2.13 KB
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
110
111
112
113
114
115
version: '3'
services:
client_web:
build:
context: ./web
dockerfile: Dockerfile
args:
REACT_APP_API_URL: $REACT_APP_API_URL
REACT_APP_ARENA_URL: $REACT_APP_ARENA_URL
command: npm start
restart: unless-stopped
environment:
- DB_HOST=db
- API_HOST=server
env_file:
- .env
volumes:
- ./web:/web
- apk-vol:/data/apk
ports:
- "${DEV_APP_EXTERNAL_PORT}:3000"
depends_on:
- client_mobile
- server
client_mobile:
build:
context: ./mobile
dockerfile: Dockerfile
args:
KOTLIN_API_HOST: $KOTLIN_API_HOST
KOTLIN_HOST: $KOTLIN_HOST
volumes:
- apk-vol:/data/apk
env_file:
- .env
server:
build: ./server
command: npm run dev
restart: unless-stopped
environment:
- DB_HOST=db
- REDIS_HOST=redis
env_file:
- .env
volumes:
- ./server:/server
networks:
- "db-tier"
- "redis-tier"
depends_on:
- db
- redis
ports:
- "${DEV_API_EXTERNAL_PORT}:80"
worker:
build: ./server
command: npm run worker
restart: unless-stopped
environment:
- REDIS_HOST=redis
- DB_HOST=db
env_file:
- .env
volumes:
- ./server:/server
networks:
- "redis-tier"
- "db-tier"
depends_on:
- redis
- db
db:
image: "mongo:4.0.14"
command: mongod
restart: unless-stopped
environment:
- MONGO_INITDB_ROOT_USERNAME=$DB_USER
- MONGO_INITDB_ROOT_PASSWORD=$DB_PASS
- MONGO_INITDB_DATABASE=$DB_NAME
env_file:
- .env
ports:
- '${DB_PORT}:27017'
networks:
- "db-tier"
volumes:
- db-vol:/data/db
- ./scripts/initdb.sh:/docker-entrypoint-initdb.d/initdb.sh
redis:
image: "redis:buster"
command: redis-server --appendonly yes --requirepass ${REDIS_PASSWORD}
restart: unless-stopped
ports:
- '${REDIS_PORT}:6379'
env_file:
- .env
volumes:
- redis-vol:/data
networks:
- "redis-tier"
networks:
db-tier:
redis-tier:
volumes:
apk-vol:
db-vol:
redis-vol: