forked from okfde/froide-theme
-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.local.yml
59 lines (59 loc) · 1.59 KB
/
docker-compose.local.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
services:
app:
image: uipa/uipa:0.2
volumes:
- .:/app
environment:
- "DATABASE_URL=postgis://froide:froide@db:5432/froide"
- "DJANGO_ELASTICSEARCH_HOST=elasticsearch"
- "DJANGO_ELASTICSEARCH_USER=elastic"
- "DJANGO_ELASTICSEARCH_PASSWORD=froide"
- "GDAL_LIBRARY_PATH=/usr/lib/libgdal.so.36"
- "GEOS_LIBRARY_PATH=/usr/lib/libgeos_c.so.1"
- "DEBUG=${DEBUG}"
- "INITIALIZE_DB=${INITIALIZE_DB}"
- "LOAD_DATA=${LOAD_DATA}"
ports:
- "8000:8000"
networks:
uipa: {}
depends_on:
- db
- elasticsearch
db:
image: postgis/postgis:14-3.1
platform: linux/amd64
volumes:
- ./data/postgres_data:/var/lib/postgresql/data/:Z
environment:
POSTGRES_USER: froide
POSTGRES_DB: froide
POSTGRES_PASSWORD: froide
ports:
- "127.0.0.1:5432:5432"
networks:
uipa: {}
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.15.0
platform: linux/amd64
volumes:
- es-data:/usr/share/elasticsearch/data:Z
- es-logs:/var/log:Z
environment:
- "discovery.type=single-node"
- "xpack.security.enabled=true"
- "ELASTIC_PASSWORD=froide"
- "cluster.routing.allocation.disk.threshold_enabled=false"
- "cluster.routing.allocation.disk.watermark.low=3gb"
- "cluster.routing.allocation.disk.watermark.high=2gb"
- "cluster.routing.allocation.disk.watermark.flood_stage=1gb"
ports:
- "127.0.0.1:9200:9200"
networks:
uipa: {}
volumes:
es-data: {}
es-logs: {}
pg-data: {}
networks:
uipa: {}