forked from OpenUpSA/wazimap-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (59 loc) · 1.5 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
62
63
x-common-environment:
&common-environment
AWS_ACCESS_KEY_ID:
AWS_S3_REGION_NAME:
AWS_SECRET_ACCESS_KEY:
AWS_STORAGE_BUCKET_NAME:
DATABASE_URL: postgis://wazimap_ng:wazimap_ng@db/wazimap_ng
DJANGO_CONN_MAX_AGE: 0
DJANGO_DEBUG: ${DJANGO_DEBUG:-True}
DJANGO_DEFAULT_FILE_STORAGE: ${DJANGO_DEFAULT_FILE_STORAGE:-django.core.files.storage.FileSystemStorage}
DJANGO_SECRET_KEY: notsosecret
DJANGO_Q_SYNC:
EMAIL_BACKEND: django.core.mail.backends.console.EmailBackend
ENVIRONMENT_NAME: Dev
WERKZEUG_DEBUG_PIN: "off"
#DEBUG_CACHE_AS_PRODUCTION: True
services:
db:
image: kartoza/postgis:13-3.1
ports:
- "5432:5432"
volumes:
- "wazimap-data:/var/lib/postgresql/"
environment:
- POSTGRES_DBNAME=wazimap_ng
- POSTGRES_USER=wazimap_ng
- POSTGRES_PASS=wazimap_ng
- POSTGRES_MULTIPLE_EXTENSIONS=postgis,pg_trgm
stop_grace_period: 10s
web:
build: .
command: python manage.py runserver_plus 0.0.0.0:8000 --keep-meta-shutdown
depends_on:
- db
ports:
- "8000:8000"
volumes:
- ./:/app/
- ./scripts:/scripts/
environment:
<<: *common-environment
worker:
build: .
command: /app/scripts/django/django_q.sh
depends_on:
- db
volumes:
- ./:/app/
- ./scripts:/scripts/
environment:
<<: *common-environment
selenium:
image: selenium/standalone-chrome:98.0.4758.102
ports:
- "4444:4444"
- "5900:5900"
- "7900:7900"
volumes:
wazimap-data: