-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.ssl.yml
37 lines (37 loc) · 1.26 KB
/
docker-compose.ssl.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
version: "2.1"
services:
worker: &worker
environment:
- ACCOUNT_DEFAULT_HTTP_PROTOCOL=https
- ALLOWED_HOSTS=developer.127.0.0.1.nip.io,beta.developer.127.0.0.1.nip.io,wiki.developer.127.0.0.1.nip.io,demos.developer.127.0.0.1.nip.io,api,localhost,web
- ATTACHMENT_HOST=demos.developer.127.0.0.1.nip.io
- CSRF_COOKIE_SECURE=True
- DOMAIN=developer.127.0.0.1.nip.io
- ENABLE_RESTRICTIONS_BY_HOST=True
- PROTOCOL=https://
- SESSION_COOKIE_SECURE=True
- SITE_ID=2
- SITE_URL=https://developer.127.0.0.1.nip.io
- STATIC_URL=https://developer.127.0.0.1.nip.io/static/
- WAFFLE_COOKIE_SECURE=True
api:
<<: *worker
web:
<<: *worker
command: /bin/bash -c "/etc/nginx/ssl/generate_dev_cert.sh && gunicorn -w 4 --bind 0.0.0.0:8000 --access-logfile=- --timeout=120 --worker-class=meinheld.gmeinheld.MeinheldWorker kuma.wsgi:application"
volumes:
- ./:/app:z
- ./etc/nginx/ssl:/etc/nginx/ssl
nginx:
image: nginx
volumes:
- ./etc/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./etc/nginx/ssl:/etc/nginx/ssl
ports:
- "80:80"
- "443:443"
depends_on:
- web
kumascript:
environment:
- LIVE_SAMPLES_URL=https://demos.developer.127.0.0.1.nip.io