Skip to content

Commit

Permalink
Added ElasticSearch and Yente to the stack.
Browse files Browse the repository at this point in the history
  • Loading branch information
apognu committed Feb 19, 2025
1 parent addea7c commit bbe26ad
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
6 changes: 6 additions & 0 deletions contrib/yente-datasets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
catalogs:
- url: "https://data.opensanctions.org/datasets/latest/index.json"
scope: us_sanctions
resource_name: entities.ftm.json
datasets: []

36 changes: 36 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
version: "3.8"

name: marble
services:
db:
container_name: marble-postgres
Expand Down Expand Up @@ -27,6 +28,7 @@ services:
restart: always
depends_on:
- db
- yente
entrypoint: ["./app", "--server", "--migrations"]
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:${API_PORT:-8080}/liveness || exit 1
Expand Down Expand Up @@ -122,8 +124,42 @@ services:
ports:
- ${FIREBASE_AUTH_EMULATOR_PORT:-9099}:9099
- 4000:4000
elasticsearch:
container_name: marble-es
image: docker.elastic.co/elasticsearch/elasticsearch:8.14.3
ports:
- ${ES_PORT:-9200}:${ES_PORT:-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:
- marble-es:/usr/share/elasticsearch/data
yente:
container_name: marble-yente
image: ghcr.io/opensanctions/yente:4.2.1
depends_on:
- elasticsearch
ports:
- ${YENTE_PORT:-8000}:${YENTE_PORT:-8000}
volumes:
- ./contrib/yente-datasets.yml:/app/manifests/default.yml
environment:
YENTE_INDEX_TYPE: elasticsearch
YENTE_INDEX_URL: "${YENTE_ELASTICSEARCH_HOST:-http://marble-es:9200}"
YENTE_UPDATE_TOKEN: ""

volumes:
marble-db:
driver: local
marble-es:
driver: local
marble-tempfiles:

0 comments on commit bbe26ad

Please sign in to comment.