-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
68 lines (59 loc) · 1.54 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
58
59
60
61
62
63
64
65
66
67
68
version: "3.5"
services:
# PostgreSQL admin DB
rmdbs:
image: postgres:14
ports:
- 5431:5432
environment:
POSTGRES_USER: docview_test
POSTGRES_PASSWORD: changeme
command: -c "max_connections=200" -c "shared_buffers=256MB"
# The actual Neo4j data backend
neo4j:
image: ehri/ehri-rest:latest
ports:
- 7575:7474
- 7686:7687
environment:
NEO4J_AUTH: neo4j/changeme
# RUNS DB initialisation on startup
EHRI_INIT: "true"
solr:
image: ehri/ehri-search-tools
ports:
- 8982:8983
# This simply allows us to send mails from CI environments
smtp:
image: python:3.9.7-slim
ports:
- 2500:2500
environment:
PYTHON_UNBUFFERED: 1
entrypoint: ["python", "-m", "smtpd", "-n", "-c", "DebuggingServer", "0.0.0.0:2500"]
minio:
image: quay.io/minio/minio:RELEASE.2024-02-26T09-33-48Z
ports:
- 9876:9000
- 9875:9001
environment:
MINIO_ROOT_USER: admin
MINIO_ROOT_PASSWORD: changeme
command: server --console-address ":9001" /data
restart: always
# Use the mc client to create an ehri-test bucket in minio
createbuckets:
image: quay.io/minio/mc
depends_on:
- minio
entrypoint: >
/bin/sh -c "
sleep 5;
/usr/bin/mc config host add ehri http://minio:9000 admin changeme;
/usr/bin/mc mb ehri/test;
/usr/bin/mc version enable ehri/test
/usr/bin/mc mb ehri/dam;
/usr/bin/mc version enable ehri/dam
/usr/bin/mc mb ehri/portal;
exit 0;
"