-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
61 lines (61 loc) · 1.63 KB
/
docker-compose.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
version: '3'
services:
db:
image: kanga-db:latest
container_name: kanga-db
environment:
- "POSTGRES_DB=kanga"
- "POSTGRES_USER=kanga"
- "POSTGRES_PASSWORD"
- "PGDATA=/var/lib/postgresql/data"
volumes:
- ./mnt/postgresql:/var/lib/postgresql/data
ports:
- "5432:5432"
app:
image: kanga-app:latest
container_name: kanga-app
# command: "python manage.py runserver 0.0.0.0:$APP_PORT"
# To serve with gunicorn, use the following command.
#command: "/usr/local/bin/gunicorn -c gunicorn.conf.py kanga.wsgi:application -b 0.0.0.0:$APP_PORT"
environment:
- "ALLOWED_HOSTS=localhost,kangalocal"
- "CSRF_COOKIE_SECURE"
- "DB_HOST=db"
- "DB_NAME"
- "DB_USER"
- "DB_PASSWORD"
- "DB_PORT"
- "APP_DEBUG"
- "APP_PORT=8080"
- "APP_SECRET_KEY"
- "REMOTE_FIXTURES_BUCKET_NAME"
- "SESSION_COOKIE_SECURE"
- "STATIC_ROOT=/kanga/static"
- "TWILIO_EDGE"
# these are only needed for local testing of s3 access
- "AWS_DEFAULT_REGION"
- "AWS_ACCESS_KEY_ID"
- "AWS_SECRET_ACCESS_KEY"
volumes:
- .:/kanga
- ./mnt/static:/kanga/static
ports:
- "${APP_PORT:-8080}:8080"
depends_on:
- db
entrypoint: [/bin/bash, /kanga/docker/kanga/gunicorn/entrypoint.sh]
web:
image: kanga-web:latest
container_name: kanga-web
environment:
- NGINX_HOST
- NGINX_PORT=443
volumes:
- ./temp:/etc/nginx/tls
- ./mnt/static:/var/www/static
ports:
- "${WEB_PORT_HTTP:-80}:80"
- "${WEB_PORT_HTTPS:-443}:443"
depends_on:
- app