-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
73 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
73
version: "3.7"
networks:
frontend:
backend:
volumes:
db-transcendence:
driver_opts:
type: none
device: ${POSTGRES_DATAPATH}
o: bind
services:
proxy:
container_name: "nginx-transcendence"
image: nginx:1.23
restart: unless-stopped
ports:
- '${SERVER_PORT}:80'
volumes:
- ./conf/nginx.conf:/etc/nginx/nginx.conf
networks:
- frontend
environment:
SERVER_HOST: ${SERVER_URL}
depends_on:
- front
front:
container_name: "react-transcendence"
image: "react:transcendence"
restart: unless-stopped
init: true
environment:
REACT_APP_SERVER_IP: ${SERVER_URL}:${SERVER_PORT}
REACT_APP_FORTYTWO_CLIENT_ID: ${FORTYTWO_CLIENT_ID}
networks:
- frontend
build:
context: .
dockerfile: front/Dockerfile
depends_on:
- api
api:
container_name: "nest-transcendence"
image: "nest:transcendence"
restart: unless-stopped
init: true
volumes:
- $POSTGRES_DATAPATH:${PGDATA}
networks:
- frontend
- backend
env_file:
- .env
build:
context: .
dockerfile: back/Dockerfile
depends_on:
- db
db:
container_name: "postgres-transcendence"
image: postgres:15
restart: unless-stopped
init: true
env_file:
- .env
networks:
- backend