-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
63 lines (56 loc) · 1008 Bytes
/
docker-compose.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
version: "3"
services:
postgres:
image: postgres
restart: always
env_file:
- ./config.env
redis:
image: redis:5.0.5-alpine
restart: always
env_file:
- ./config.env
base:
build:
context: ./base
args:
editable: 1
depends_on:
- postgres
migrate:
build: ./api
command: sh -c '/base/wait-for.sh postgres:5432 -- alembic upgrade head'
depends_on:
- base
- postgres
env_file:
- ./config.env
api:
build: ./api
ports:
- 3000:3000
depends_on:
- postgres
- base
- migrate
env_file:
- ./config.env
frontend:
build: ./frontend
ports:
- 80:3000
depends_on:
- api
env_file:
- ./config.env
games:
build: ./games
command: sh -c '/base/wait-for.sh postgres:5432 -- sleep 2 && python app.py'
ports:
- 3333:3000
depends_on:
- postgres
- api
- base
env_file:
- ./config.env