forked from Ellana42/ft_transcendance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
72 lines (65 loc) · 1.63 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
version: "3.7"
services:
nginx:
container_name: nginx
image: nginx:ft_transcendance
build: ./build/nginx
env_file: .env
networks:
- ft_transcendance
ports:
- "8080:80"
depends_on:
- frontend
- backend
restart: always
frontend:
container_name: frontend
image: frontend:ft_transcendance
build: ./build/frontend
env_file: .env
networks:
- ft_transcendance
ports:
- "3000:3000"
volumes:
- ./frontend-app:/app
working_dir: /app
restart: on-failure
backend:
container_name: backend
image: backend:ft_transcendance
build: ./build/backend/
env_file: .env
networks:
- ft_transcendance
ports:
- "3001:3001"
volumes:
- ./backend-app:/app
working_dir: /app
restart: on-failure
depends_on:
- postgresql
postgresql:
container_name: postgresql
image: postgres:latest
env_file: .env
networks:
- ft_transcendance
ports:
- "5432:5432"
volumes:
- database:/foo/nocopy
restart: on-failure
networks:
ft_transcendance:
name: ft_transcendance
driver: bridge
volumes:
database:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: ${DATA_PATH}/database