forked from ealgis/ealgis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-prod.yml
49 lines (49 loc) · 1.1 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
48
49
version: "3"
services:
datastore:
image: ealgis/postgis:latest
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=datastore
db:
image: ealgis/postgis:latest
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=ealgis
redis:
image: redis:5-alpine
uwsgi:
image: ealgis/uwsgi:latest
command: uwsgi
volumes:
- ./log/:/var/log:delegated
environment:
- REDIS_LOCATION=redis://redis:6379/1
- DB_HOST=db
- DB_PORT=5432
- DB_NAME=ealgis
- DB_USERNAME=postgres
- DB_PASSWORD=postgres
- DATASTORE_HOST=datastore
- DATASTORE_PORT=5432
- DATASTORE_NAME=datastore
- DATASTORE_USERNAME=postgres
- DATASTORE_PASSWORD=postgres
env_file:
- web-variables.env
depends_on:
- db
- datastore
- redis
nginx-prod:
image: ealgis/nginx:latest
volumes:
- ./keys/:/app/keys/:delegated
depends_on:
- uwsgi
ports:
- "443:443"
environment:
- HTTPS_ENABLED=TRUE
- SERVER_NAME=demo.ealgis.org
- DJANGO_LOCATION=uwsgi:9090