-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
74 lines (64 loc) · 1.21 KB
/
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
64
65
66
67
68
69
70
71
72
73
74
version: "3.9"
networks:
ft_transcendence:
name: ft_transcendence
driver: bridge
volumes:
db_vol:
name: db_vol
upload:
name: upload
services:
db:
image: postgres:14
container_name: db
env_file: .env
restart: always
volumes:
- db_vol:/var/lib/postgresql/data/${DB_NAME}
networks:
- ft_transcendence
backend:
build:
context: .
dockerfile: backend.Dockerfile
image: backend:img
container_name: backend
env_file: .env
restart: always
depends_on:
- db
ports:
- "${BACK_PORT}:${BACK_PORT}"
volumes:
- upload:/upload
networks:
- ft_transcendence
frontend:
build:
context: .
dockerfile: frontend.Dockerfile
image: frontend:img
container_name: frontend
env_file: .env
restart: always
depends_on:
- pong
ports:
- "${HOST_PORT}:${FRONT_PORT}"
networks:
- ft_transcendence
pong:
build:
context: .
dockerfile: pong.Dockerfile
image: pong:img
container_name: pong
env_file: .env
restart: always
depends_on:
- backend
ports:
- "${PONG_PORT}:${PONG_PORT}"
networks:
- ft_transcendence