This repository was archived by the owner on Sep 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
87 lines (82 loc) · 1.69 KB
/
docker-compose.yml
File metadata and controls
87 lines (82 loc) · 1.69 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
version: "3.3"
services:
redis:
env_file:
- .env
image: redis:3.2-alpine
command: redis-server --requirepass ${KEY_VALUE_STORE_PASSWORD}
ports:
- "${KEY_VALUE_STORE_PORT}:${KEY_VALUE_STORE_PORT}"
nginx:
env_file:
- .env
build:
context: .
dockerfile: nginx/Dockerfile
args:
WEB_APP_PORT: "${WEB_APP_PORT}"
ports:
- "${WEB_APP_PORT}:${WEB_APP_PORT}"
volumes:
- sld:/opt/sld/
- reports:/opt/reports
depends_on:
- django
django:
env_file:
- .env
build:
context: ./django/publicmapping
expose:
- "${WEB_APP_PORT}"
volumes:
- reports:/opt/reports
- sld:/opt/sld
- tmp:/tmp
entrypoint: /usr/local/bin/gunicorn
command:
- "--workers=2"
- "--timeout=60"
- "--bind=0.0.0.0:${WEB_APP_PORT}"
- "--reload"
- "--log-level=debug"
- "--access-logfile=-"
- "--error-logfile=-"
- "--timeout=300"
- "-kgevent"
- "publicmapping.wsgi"
links:
- redis:${KEY_VALUE_STORE_HOST}
- geoserver:${MAP_SERVER_HOST}
celery:
build:
context: ./django/publicmapping
env_file:
- .env
volumes:
- reports:/opt/reports
- tmp:/tmp
entrypoint: /usr/local/bin/celery
command:
- "worker"
- "--app=publicmapping"
- "--uid=reporter"
- "--loglevel=INFO"
- "--without-mingle"
links:
- redis:${KEY_VALUE_STORE_HOST}
geoserver:
build:
context: ./geoserver
env_file:
- .env
volumes:
- data:/data
- sld:/data/sld
ports:
- "${MAP_SERVER_PORT}:${WEB_APP_PORT}"
volumes:
reports:
data:
sld:
tmp: