-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproduction.yml
More file actions
executable file
·58 lines (54 loc) · 1.34 KB
/
production.yml
File metadata and controls
executable file
·58 lines (54 loc) · 1.34 KB
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
version: '3'
services:
web:
env_file: .env
environment:
- EX_PORT_NGINX=$EX_PORT_NGINX
- PORT_NGINX=$PORT_NGINX
image: nginx:alpine
restart: always
ports:
- "$EX_PORT_NGINX:$PORT_NGINX"
volumes:
- ./src:/code
- ./log:/log
- static_volume:/home/app/web/staticfiles
- media_volume:/home/app/web/mediafiles
- ./nginx/site.conf:/etc/nginx/conf.d/default.conf
links:
- django
logging:
driver: "json-file"
options:
max-size: "5m"
max-file: "10"
django:
env_file: .env
environment:
- EXPOSE_DJANGO_PORT=$EXPOSE_DJANGO_PORT
- GUNICORN_PORT=$GUNICORN_PORT
build:
context: .
dockerfile: ./compose/local/django/Dockerfile
restart: always
command: gunicorn config.wsgi:application --bind 0.0.0.0:${GUNICORN_PORT}
volumes:
- ./src/api:/home/app/web/api
- ./src/app:/home/app/web/app
- ./src/config:/home/app/web/config
- ./src/utils:/home/app/web/utils
- ./src/log:/home/app/web/log
- static_volume:/home/app/web/staticfiles
- media_volume:/home/app/web/mediafiles
logging:
driver: "json-file"
options:
max-size: "5m"
max-file: "10"
networks:
default:
external:
name: django-template
volumes:
static_volume:
media_volume: