-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
65 lines (56 loc) · 1.08 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
version: '3'
# ----------- NETWORKS -----------
networks:
ft_transcendance:
driver: bridge
# ----------- SERVICES -----------
services:
nginx:
container_name: nginx
networks:
- ft_transcendance
depends_on:
- angular
build: ./nginx
env_file: .env
ports:
- "443:443"
restart: on-failure
angular:
container_name: angular
env_file: .env
volumes:
- angular:/app
networks:
- ft_transcendance
depends_on:
- backend
build: ./angular
restart: on-failure
backend:
container_name: backend
env_file: .env
volumes:
- backend:/app
networks:
- ft_transcendance
build: ./backend
depends_on:
- database
ports:
- "3000:3000"
restart: on-failure
database:
container_name: database
env_file: .env
networks:
- ft_transcendance
build: ./database
volumes:
- postgres-data:/var/lib/postgresql/data
restart: on-failure
# ----------- VOLUMES -----------
volumes:
postgres-data:
backend:
angular: