forked from OpenUpSA/wazimap-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (55 loc) · 1.24 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
version: '3'
services:
db:
image: kartoza/postgis:12.0
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
container_name: wazimap-ng_db_1
web:
build: .
command: /app/scripts/django/web.sh
depends_on:
- db
ports:
- "8000:8000"
env_file:
- ./config/django/django.env
volumes:
- ./:/app/
- ./scripts:/scripts/
environment:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- DJANGO_DEFAULT_FILE_STORAGE
- AWS_STORAGE_BUCKET_NAME
- AWS_S3_REGION_NAME
- DATABASE_URL
- DJANGO_CONFIGURATION
queue:
build: .
command: /app/scripts/django/django_q.sh
depends_on:
- db
env_file:
- ./config/django/django.env
volumes:
- ./:/app/
- ./scripts:/scripts/
environment:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- DJANGO_DEFAULT_FILE_STORAGE
- AWS_STORAGE_BUCKET_NAME
- AWS_S3_REGION_NAME
- DATABASE_URL
- DJANGO_CONFIGURATION
volumes:
wazimap-data: