-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.services.yml
117 lines (109 loc) · 2.91 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# Overrides base docker-compose.yml file
# to add stateful backing services (e.g. databases)
version: "3.8"
services:
# PostgreSQL database
postgres:
image: postgres:11
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
## ArangoDB graph database
arangodb:
build:
# Note that this Dockerfile simply adds a user directory and installs the helper scripts into it, and then executes the default arango
# entrypoint as normal.
context: ../arangodb
dockerfile: Dockerfile
container_name: arangodb
environment:
ARANGO_ROOT_PASSWORD: password
LIFELIKE_DB_NAME: lifelike
ports:
- 8529:8529
volumes:
- ../arangodb/bin:/home/dbuser/bin # the /home/dbuser directory is setup in the Dockerfile
- ../arangodb/data:/var/lib/arangodb3
- ../arangodb/apps:/var/lib/arangodb3-apps
## Ekasticsearch search engine
elasticsearch:
container_name: elasticsearch
build:
dockerfile: Dockerfile
context: ../elasticsearch
environment:
- discovery.type=single-node
- http.max_content_length=200mb #allow 200mb of content to be sent for indexing
- bootstrap.memory_lock=true
- xpack.graph.enabled=false
- xpack.watcher.enabled=false
- xpack.license.self_generated.type=basic
volumes:
- ../elasticsearch:/usr/share/elasticsearch/data
ulimits:
memlock:
soft: -1
hard: -1
ports:
- "9200:9200"
- "9300:9300"
healthcheck:
test: ["CMD", "curl", "-f", "localhost:9200/_cluster/health"]
start_period: 1m
redis:
image: redis:6-alpine
restart: unless-stopped
container_name: redis
ports:
- 6379
healthcheck:
test: ["CMD", "redis-cli", "ping"]
appserver:
environment:
- POSTGRES_HOST=postgres
- POSTGRES_PASSWORD=postgres
# Arango
- ARANGO_HOST=http://arangodb:8529
- ARANGO_USERNAME=root
- ARANGO_PASSWORD=password
- ARANGO_DB_NAME=lifelike
- ELASTICSEARCH_URL=http://elasticsearch:9200
- REDIS_HOST=redis
depends_on:
- postgres
- arangodb
- elasticsearch
statistical-enrichment:
environment:
# Arango
- ARANGO_HOST=http://arangodb:8529
- ARANGO_USERNAME=root
- ARANGO_PASSWORD=password
- ARANGO_DB_NAME=lifelike
- REDIS_HOST=redis
depends_on:
- arangodb
- redis
cache-invalidator:
environment:
# Arango
- ARANGO_HOST=http://arangodb:8529
- ARANGO_USERNAME=root
- ARANGO_PASSWORD=password
- ARANGO_DB_NAME=lifelike
- REDIS_HOST=redis
depends_on:
- arangodb
- redis
volumes:
postgres:
arangodb:
elasticsearch: