-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.prod.yml
42 lines (38 loc) · 1.17 KB
/
docker-compose.prod.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
version: "3.4"
services:
nginx:
ports:
- "80:80"
webapp:
image: ft_transcendence/webapp-prod
build:
context: .
dockerfile: ./webapp/Dockerfile
target: production
args:
- REACT_APP_NAME=webapp-prod
volumes:
- ./srcs/webapp.conf:/etc/nginx/conf.d/default.conf:ro
transcendence-app:
image: ft_transcendence/transcendence-app-prod
build:
context: .
dockerfile: ./transcendence-app/Dockerfile
target: production
volumes:
- transcendence-app-data-prod:${TRANSCENDENCE_APP_DATA:-/var/lib/transcendence-app}
environment:
- POSTGRES_USER=${POSTGRES_USER:?required}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:?required}
- FORTYTWO_APP_CALLBACK_URL=${FORTYTWO_APP_CALLBACK_URL:?required}
- WEBSITE_OWNER_PASSWORD=${WEBSITE_OWNER_PASSWORD:?required}
- WEBSITE_OWNER_USERNAME=${WEBSITE_OWNER_USERNAME:?required}
db:
volumes:
- transcendence-db-prod:/var/lib/postgresql/data
environment:
- POSTGRES_USER=${POSTGRES_USER:?required}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:?required}
volumes:
transcendence-db-prod:
transcendence-app-data-prod: