forked from checkmarble/marble-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (56 loc) · 1.29 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
services:
db:
container_name: postgres
image: postgres:15
shm_size: 1g
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: marble
POSTGRES_DB: marble
PGDATA: /data/postgres
ports:
- "5432:5432"
volumes:
- postgres-db:/data/postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 2s
timeout: 1s
retries: 5
elasticsearch:
container_name: es
image: docker.elastic.co/elasticsearch/elasticsearch:8.14.3
ports:
- "9200:9200"
environment:
- node.name=es
- cluster.name=marble-es
- discovery.type=single-node
- bootstrap.memory_lock=true
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms2g -Xmx2g"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- es:/usr/share/elasticsearch/data
yente:
container_name: yente
image: ghcr.io/opensanctions/yente:4.2.1
depends_on:
- elasticsearch
ports:
- "8000:8000"
volumes:
- ./contrib/yente-datasets.yml:/app/manifests/default.yml
environment:
YENTE_INDEX_TYPE: elasticsearch
YENTE_INDEX_URL: "http://es:9200"
YENTE_UPDATE_TOKEN: ""
volumes:
postgres-db:
driver: local
es:
driver: local