forked from CodeWithAloha/uipa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
31 lines (30 loc) · 888 Bytes
/
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
services:
db:
image: postgis/postgis:14-3.1
volumes:
- pg-data:/var/lib/postgresql/data/
environment:
POSTGRES_USER: froide
POSTGRES_DB: froide
POSTGRES_PASSWORD: froide
ports:
- "127.0.0.1:5432:5432"
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.15.0
volumes:
- es-data:/usr/share/elasticsearch/data
- es-logs:/var/log
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"
volumes:
es-data: {}
es-logs: {}
pg-data: {}