-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.prod.yml
47 lines (47 loc) · 1.28 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.2'
services:
djacket_prod_base:
container_name: djacket_prod_base
build: .
image: djacket_prod_image
env_file:
- ./.env
environment:
- DJKR_MODE=prod
entrypoint: /srv/docker-entrypoint-build.sh
volumes:
- ${DB_FOLDER}:/srv/db
- ${MEDIA_FOLDER}:/srv/media
- ${STATIC_FOLDER}:/srv/static
- ${DEPOSIT_FOLDER}:/srv/deposit
- ./core/frontend:/srv/core/frontend
djacket_upstream:
container_name: djacket_upstream
image: djacket_prod_image
working_dir: /srv/core/backend
restart: always
env_file:
- ./.env
environment:
- DJKR_MODE=prod
command: gunicorn djacket.wsgi:application -c /srv/run/conf/djacket.gunicorn.conf -b 0.0.0.0:8080
volumes:
- ${DB_FOLDER}:/srv/db
- ${MEDIA_FOLDER}:/srv/media
- ${DEPOSIT_FOLDER}:/srv/deposit
- ./run:/srv/run
- ./core/backend:/srv/core/backend
- ./core/frontend:/srv/core/frontend
djacket_web:
container_name: djacket_web
image: nginx:latest
restart: always
ports:
- "${DJACKET_PROD_PORT}:80"
volumes:
- ${MEDIA_FOLDER}:/srv/media
- ${STATIC_FOLDER}:/srv/static
- ./nginx/conf:/etc/nginx/conf.d
- ./nginx/logs:/var/log/nginx/
depends_on:
- djacket_upstream