This repository has been archived by the owner on Apr 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.services.yml
101 lines (93 loc) · 2.18 KB
/
docker-compose.services.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# Overrides base docker-compose.yml file
# to add stateful backing services (e.g. databases)
version: "3.8"
services:
# PostgreSQL database
postgres:
image: postgres:13
restart: unless-stopped
container_name: postgres
environment:
- POSTGRES_PASSWORD=postgres
ports:
- 5432
volumes:
- postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres", "-q"]
start_period: 10s
## Neo4j graph database
neo4j:
image: neo4j:4.4-community
restart: unless-stopped
container_name: neo4j
environment:
- NEO4J_AUTH=neo4j/password
- NEO4JLABS_PLUGINS=["apoc"]
ports:
- 7687:7687
- 7474:7474
volumes:
- neo4j:/var/lib/neo4j/data
healthcheck:
test: ["CMD", "wget", "localhost:7474", "-O", "-"]
start_period: 1m
## Ekasticsearch search engine
elasticsearch:
image: ghcr.io/sbrg/lifelike-elasticsearch:7.16.3
restart: unless-stopped
container_name: elasticsearch
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
ports:
- 9200
volumes:
- elasticsearch:/usr/share/elasticsearch/data
ulimits:
memlock:
soft: -1
hard: -1
healthcheck:
test: ["CMD", "curl", "-f", "localhost:9200/_cluster/health"]
start_period: 1m
redis:
image: redis:alpine
restart: unless-stopped
container_name: redis
ports:
- 6379
healthcheck:
test: ["CMD", "redis-cli", "ping"]
appserver:
environment:
- POSTGRES_HOST=postgres
- POSTGRES_PASSWORD=postgres
- NEO4J_HOST=neo4j
- NEO4J_AUTH=neo4j/password
- ELASTICSEARCH_URL=http://elasticsearch:9200
- REDIS_HOST=redis
depends_on:
- postgres
- neo4j
- elasticsearch
statistical-enrichment:
environment:
- NEO4J_HOST=neo4j
- NEO4J_AUTH=neo4j/password
- REDIS_HOST=redis
depends_on:
- neo4j
- redis
cache-invalidator:
environment:
- NEO4J_HOST=neo4j
- NEO4J_AUTH=neo4j/password
- REDIS_HOST=redis
depends_on:
- neo4j
- redis
volumes:
postgres:
neo4j:
elasticsearch: