forked from WildCodeSchool/2023-09-wns-rouge-greenquest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
36 lines (36 loc) · 997 Bytes
/
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
services:
backend:
image: laurejanin/greenquest-backend:latest
environment:
- BACK_PORT=5000
- DB_USERNAME=username
- DB_PASSWORD=password
- DB_DATABASE=dbname
- DB_HOST=database
- JWT_SECRET=secret
- FRONT_URL=https://0923-rouge-3.wns.wilders.dev
- MJ_APIKEY_PUBLIC=94d9051bde289b772a4d0d165447edc8
- MJ_APIKEY_PRIVATE=bc641d6a643c5405af90ec989b4ec045
volume: ./backend/public/uploads:/app/backend/public/uploads
database:
image: postgres
# restart: always
# ports:
# - 5433:5432
volumes:
- /var/lib/postgresql/data
environment:
- POSTGRES_USER=username
- POSTGRES_PASSWORD=password
- POSTGRES_DB=dbname
frontend:
image: laurejanin/greenquest-frontend:latest
nginx:
stop_grace_period: 0s
image: nginx:1.21.3
restart: always
ports:
- ${GATEWAY_PORT:-8000}:80
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
# - ./logs:/var/log/nginx