-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
49 lines (45 loc) · 1.23 KB
/
compose.yaml
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
version: "3.8"
services:
elasticsearch:
image: 'bitnami/elasticsearch:latest'
environment:
- 'ELASTICSEARCH_USERNAME=elastic'
- 'ELASTICSEARCH_PASSWORD=secretpwd'
- 'discovery.type=single-node'
ports:
- '9200:9200'
mongo1:
image: mongo:7.0
command: [ "--replSet", "rs0", "--bind_ip_all", "--port", "27017" ]
environment:
MONGO_INITDB_DATABASE: order
ports:
- 27017:27017
extra_hosts:
- "host.docker.internal:host-gateway"
healthcheck:
test: echo "try { rs.status() } catch (err) { rs.initiate({_id:'rs0',members:[{_id:0,host:'host.docker.internal:27017'}]}) }" | mongosh --port 27017 --quiet
interval: 5s
timeout: 30s
start_period: 0s
start_interval: 1s
retries: 30
volumes:
- "mongo1_data:/data/db"
- "mongo1_config:/data/configdb"
monstache:
image: rwynn/monstache:latest
working_dir: /app
command: -f ./monstache.config.toml
volumes:
- $PWD/monstache.config.toml:/app/monstache.config.toml
depends_on:
- mongo1
- elasticsearch
labels:
org.springframework.boot.readiness-check.tcp.disable: true
ports:
- '8081:8081'
volumes:
mongo1_data:
mongo1_config: