-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.sc.yml
130 lines (122 loc) · 2.97 KB
/
docker-compose.sc.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
118
119
120
121
122
123
124
125
126
127
128
129
130
version: "2.3"
networks:
test:
driver: bridge
volumes:
esdata1:
driver: local
services:
config:
container_name: c-config
build:
context: ./elasticsearch/config
dockerfile: ./Dockerfile
command: /elasticsearch/configure.sh
working_dir: /elasticsearch
volumes:
- ./elasticsearch:/elasticsearch
depends_on:
es7:
condition: service_healthy
networks:
- test
healthcheck:
test: "[ -f /run/health.check ] && exit 0 || exit 1"
interval: 2s
timeout: 30s
retries: 300
restart: unless-stopped
data:
image: mongo:4.4
container_name: c-data
command: /scripts/mongo-import.sh
working_dir: /scripts
volumes:
- ./mongodb/scripts:/scripts
depends_on:
monstache:
condition: service_healthy
config:
condition: service_healthy
environment:
MONGO_USER_ROOT_NAME: root-user
MONGO_USER_ROOT_PASSWORD: password
MONGO_AUTH_SOURCE: admin
networks:
- test
monstache:
image: rwynn/monstache:6.7.2
container_name: c-monstache
working_dir: /app
command: -f ./monstache.config.toml
volumes:
- ./monstache.config.toml:/app/monstache.config.toml
- ./plugin/plugin.so:/app/plugin.so
depends_on:
mongo-0:
condition: service_healthy
es7:
condition: service_healthy
ports:
- "8080:8080"
networks:
- test
healthcheck:
test: "wget -q -O - http://localhost:8080/healthz"
interval: 10s
timeout: 30s
retries: 300
restart: unless-stopped
mongo-0:
image: mongo:4.4
logging:
driver: none
container_name: c-mongo
command: /scripts/mongo-run.sh
working_dir: /scripts
volumes:
- ./mongodb/scripts:/scripts
environment:
MONGO_REPLICA_SET_NAME: rs0
MONGO_REPLICAS: mongo-0:27017
MONGO_REPLICA_SET_MEMBERS: "[{'_id':0,'host':'mongo-0:27017','priority':1}]"
MONGO_USER_ROOT_NAME: root-user
MONGO_USER_ROOT_PASSWORD: password
MONGO_AUTH_SOURCE: admin
MONGO_BIND_IP: "0.0.0.0"
ports:
- "27017:27017"
networks:
- test
healthcheck:
test: "[ -f /data/health.check ] && exit 0 || exit 1"
interval: 2s
timeout: 30s
retries: 300
restart: unless-stopped
es7:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.0
logging:
driver: none
container_name: c-es
environment:
- bootstrap.memory_lock=true
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms5g -Xmx5g"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- esdata1:/usr/share/elasticsearch/data
ports:
- "9200:9200"
networks:
- test
healthcheck:
test: "curl --fail http://localhost:9200 || exit 1"
interval: 2s
timeout: 60s
retries: 300
restart: unless-stopped