-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.prod.yml
47 lines (43 loc) · 1.11 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
43
44
45
46
47
version: '3.4'
services:
db:
image: postgres:alpine
restart: unless-stopped
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USER}
volumes:
- pgdb-data:/var/lib/postgresql/data
backend:
image: fyusufa/ft_transcendence_backend
expose:
- 80
environment:
DB_HOST: ${DB_HOST}
DB_NAME: ${DB_NAME}
URL: ${URL}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USER}
JWT_SECRET_KEY: ${BACKEND_JWT_SECRET_KEY}
WATCH: 0
DISABLE_AUTHENTICATION: 'false'
BACKEND_42_UID: ${BACKEND_42_UID}
BACKEND_42_SECRET: ${BACKEND_42_SECRET}
BACKEND_GOOGLE_UID: ${BACKEND_GOOGLE_UID}
BACKEND_GOOGLE_SECRET: ${BACKEND_GOOGLE_SECRET}
BACKEND_SALT_ROUNDS: ${BACKEND_SALT_ROUNDS}
restart: unless-stopped
depends_on:
- db
frontend:
image: fyusufa/ft_transcendence_frontend
ports:
- ${PROXY_PORT}:80
environment:
VITE_DISABLE_AUTHENTICATION: 'false'
restart: unless-stopped
depends_on:
backend:
condition: service_healthy
volumes:
pgdb-data: