-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
80 lines (73 loc) · 1.96 KB
/
docker-compose.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
version: "3.4"
services:
app-dev:
build:
dockerfile: ./docker/Dockerfile.dev
context: .
ports:
- ${PORT}:${PORT}
depends_on:
- mongodb
env_file:
- .env
volumes:
- ./:/usr/src/app
- app-deps:/usr/src/app/node_modules
stdin_open: true
tty: true
mongodb:
image: mongo:4.4.3
hostname: mongodb
volumes:
- mongodata:/data/db
- mongo-config:/data/configdb
- ./docker/mongodb/scripts:/scripts:ro
ports:
- 27017:27017
env_file:
- .env
environment:
MONGO_INITDB_DATABASE: ${MONGODB_DATABASE}
MONGO_REPLICA_SET_NAME: ${MONGO_REPLICA_SET_NAME}
healthcheck:
test: test $$(echo "rs.initiate().ok || rs.status().ok" | mongo --quiet) -eq 1
interval: 10s
start_period: 30s
command: ["--replSet", "${MONGO_REPLICA_SET_NAME}", "--bind_ip_all"]
elastic-search:
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.2
restart: always
environment:
discovery.type: single-node
LS_JAVA_OPTS: "-Xmx256m -Xms256m"
ports:
- 9200:9200
volumes:
- elastic-search-data:/usr/share/elasticsearch/data
- ./docker/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
kibana:
image: docker.elastic.co/kibana/kibana:7.10.2
ports:
- 5601:5601
environment:
ELASTICSEARCH_URL: http://elastic-search:9200
ELASTICSEARCH_HOSTS: http://elastic-search:9200
LS_JAVA_OPTS: "-Xmx256m -Xms256m"
depends_on:
- elastic-search
volumes:
- ./docker/kibana/config/kibana.yml:/usr/share/kibana/config/kibana.yml:ro
monstache:
image: rwynn/monstache:6.7.3
working_dir: /app
command: -f ./monstache.config.toml
volumes:
- ./docker/monstache.config.toml:/app/monstache.config.toml
ports:
- "8080:8080"
restart: unless-stopped
volumes:
mongodata:
mongo-config:
app-deps:
elastic-search-data: