-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
72 lines (66 loc) · 1.35 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.8"
services:
postgres:
image: postgres:latest
container_name: postgres
volumes:
- postgres:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
restart: always
networks:
- ft_transcendence
nest:
build:
context: ./nest/
dockerfile: nest.Dockerfile
container_name: nest
volumes:
- postgres:/var/lib/postgresql/data
- ./nest/:/app/nest
ports:
- "8080:8080"
- "3333:3333"
depends_on:
- postgres
restart: always
networks:
- ft_transcendence
ui:
build:
context: ./ui/
dockerfile: ui.Dockerfile
container_name: ui
volumes:
- ./ui/:/app
- "/app/node_modules"
ports:
- "3000:3000"
restart: always
networks:
- ft_transcendence
depends_on:
- nest
nginx:
build: ./reverse_proxy/
container_name: reverse_proxy
ports:
- 8000:8000
volumes:
- ./ui/:/usr/share/nginx/html
- ./reverse_proxy/conf/:/etc/nginx/conf.d
networks:
- ft_transcendence
depends_on:
- ui
networks:
ft_transcendence:
name: ft_transcendence
driver: bridge
driver_opts:
com.docker.network.bridge.host_binding_ipv4: "127.0.0.1"
volumes:
postgres: