-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
69 lines (67 loc) · 1.58 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
version: '3.9'
services:
back-end:
build: ./back-end
container_name: back-end
image: back-end:back-end
restart: unless-stopped
command: "bash /app/script/script.sh"
env_file:
- /Users/$USER/Desktop/data_transcendence/env_files/.env_back_end
depends_on:
- dev-db
ports:
- "3333:3333"
volumes:
- avatars-volume:/app/public/avatars
- qrcodes-volume:/app/public/qrcodes
networks:
- transcendence
dev-db:
image: postgres:latest
container_name: postgres
ports:
- 5434:5432
restart: unless-stopped
env_file:
- /Users/$USER/Desktop/data_transcendence/env_files/.env_db
volumes:
- db-volume:/var/lib/postgresql/data
networks:
- transcendence
front-end:
build: ./front-end
container_name: front-end
image: front-end:front-end
restart: unless-stopped
depends_on:
- back-end
- dev-db
ports:
- "3000:3000"
env_file:
- /Users/$USER/Desktop/data_transcendence/env_files/.env_front_end
networks:
- transcendence
volumes:
db-volume:
driver: local
driver_opts:
type: none
device: /Users/$USER/Desktop/data_transcendence/data/db
o: bind
avatars-volume:
driver: local
driver_opts:
type: none
device: /Users/$USER/Desktop/data_transcendence/data/images/avatars
o: bind
qrcodes-volume:
driver: local
driver_opts:
type: none
device: /Users/$USER/Desktop/data_transcendence/data/images/qrcodes_users
o: bind
networks:
transcendence:
name: transcendence