-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.example.yml
93 lines (86 loc) · 2.23 KB
/
docker-compose.example.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
version: '2.1'
services:
prism-mongo:
container_name: prism-mongo
image: mongo
restart: always
healthcheck:
test: mongo --eval 'db.getCollectionNames()'
interval: 10s
timeout: 2s
retries: 10
volumes:
- prism-mongodb-vol:/data/db
ports:
- 127.0.0.1:27017:27017
networks:
- services-tier
entrypoint: [ "/usr/bin/mongod", "--bind_ip_all", "--replSet", "rs0" ]
slave-mongo:
container_name: slave-mongo
image: mongo
ports:
- 27018:27017
restart: always
networks:
- services-tier
entrypoint: [ "/usr/bin/mongod", "--bind_ip_all", "--replSet", "rs0" ]
prism-node:
container_name: prism-node
restart: always
depends_on:
prism-mongo:
condition: service_healthy
elasticsearch:
condition: service_healthy
build:
context: .
dockerfile: Dockerfile
networks:
- services-tier
ports:
- $GLS_CONNECTOR_HOST:$GLS_CONNECTOR_PORT:$GLS_CONNECTOR_PORT
- $GLS_METRICS_HOST:$GLS_METRICS_PORT:$GLS_METRICS_PORT
env_file:
- .env
elasticsearch:
container_name: elasticsearch
image: elasticsearch:7.5.0
networks:
- services-tier
ports:
- 127.0.0.1:9200:9200
healthcheck:
test: curl http://127.0.0.1:9200/_cat/health
environment:
'discovery.type': 'single-node'
'bootstrap.memory_lock': 'true'
'ES_JAVA_OPTS': '-Xms512m -Xmx512m'
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- prism-elastic-vol:/usr/share/elasticsearch/data
monstache:
image: rwynn/monstache
container_name: monstache
working_dir: /app
command: -f ./monstache.example.config.toml
volumes:
- $PWD/search-configs/monstache.example.config.toml:/app/monstache.example.config.toml
- $PWD/search-configs/parsePost.js:/app/parsePost.js
- $PWD/search-configs/parseProfile.js:/app/parseProfile.js
- $PWD/search-configs/parseCommunity.js:/app/parseCommunity.js
depends_on:
prism-mongo:
condition: service_started
elasticsearch:
condition: service_healthy
networks:
- services-tier
volumes:
prism-mongodb-vol:
prism-elastic-vol:
networks:
services-tier: