forked from maykinmedia/open-inwoner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (43 loc) · 1.14 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
# Inspired by https://docs.docker.com/compose/django/
version: '3'
services:
db:
image: postgis/postgis:12-2.5
environment:
- POSTGRES_USER=${DB_USER:-open_inwoner}
- POSTGRES_PASSWORD=${DB_PASSWORD:-open_inwoner}
volumes:
- db_data:/var/lib/postgresql/data
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.2
container_name: elasticsearch
environment:
- discovery.type=single-node
- cluster.routing.allocation.disk.threshold_enabled=false
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
volumes:
- es_data:/usr/share/elasticsearch/data
ports:
- 9200:9200
redis:
image: redis
web:
build: .
environment:
- DJANGO_SETTINGS_MODULE=open_inwoner.conf.docker
- SECRET_KEY=${SECRET_KEY:-7bk)w=_%lnm#68rc!c)h@gy&5+%^f$=okq17bv!)yv!l0udu2y}
- ALLOWED_HOSTS=*
- CACHE_DEFAULT=redis:6379/0
- CACHE_AXES=redis:6379/0
- ES_HOST=elasticsearch
- TWO_FACTOR_FORCE_OTP_ADMIN=0
- TWO_FACTOR_PATCH_ADMIN=0
ports:
- 8000:8000
depends_on:
- db
- redis
- elasticsearch
volumes:
db_data:
es_data: