-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.staging.yml
78 lines (77 loc) · 1.8 KB
/
docker-compose.staging.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: "3.8"
services:
django:
restart: always
build:
context: .
dockerfile: ./dockerfile
container_name: django
command: gunicorn --workers=2 --bind=0.0.0.0:8000 --env DJANGO_SETTINGS_MODULE=core.settings.prod core.wsgi:application
volumes:
- .:/usr/src/app
- static_volume:/usr/src/app/static
- media_volume:/usr/src/app/media
ports:
- "8000:8000"
env_file:
- ./core/env/env.staging
depends_on:
- redis
celery:
restart: always
build:
context: .
dockerfile: ./dockerfile
container_name: celery
entrypoint: /bin/sh
command: ./docker.celery.sh
volumes:
- .:/usr/src/app
- static_volume:/usr/src/app/static
- media_volume:/usr/src/app/media
env_file:
- ./core/env/env.staging
depends_on:
- django
- redis
redis:
restart: always
image: redis:alpine
container_name: redis
volumes:
- redisdata:/data
nginx-proxy:
container_name: nginx-proxy
build: ./nginx
restart: always
ports:
- 443:443
- 80:80
volumes:
- static_volume:/usr/src/app/static
- media_volume:/usr/src/app/media
- certs:/etc/nginx/certs
- html:/usr/share/nginx/html
- vhost:/etc/nginx/vhost.d
- /var/run/docker.sock:/tmp/docker.sock:ro
depends_on:
- django
nginx-proxy-letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: letsencrypt
env_file:
- ./core/env/env.staging.proxy-companion
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- certs:/etc/nginx/certs
- html:/usr/share/nginx/html
- vhost:/etc/nginx/vhost.d
depends_on:
- nginx-proxy
volumes:
redisdata:
static_volume:
media_volume:
certs:
html:
vhost: