-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.dev.yml
67 lines (62 loc) · 1.36 KB
/
docker-compose.dev.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
version: '3'
services:
web:
container_name: mccs
build:
context: .
dockerfile: dockerfile.dev
volumes:
- ./:/usr/src/app
ports:
- 8080:8080
depends_on:
- mongo
- es01
postgres:
container_name: postgres
image: postgres:11.4
ports:
- 5432:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_DB=mccs
volumes:
- postgresql:/var/lib/postgresql/data
mongo:
container_name: mongo
image: mongo:4.0.10
ports:
- 27017:27017
volumes:
- mongodb:/data/db
es01:
container_name: es01
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.5
environment:
- node.name=es01
- discovery.type=single-node
# JVM memory: initial and max set to 512MB.
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ports:
- 9200:9200
volumes:
- esdata01:/usr/share/elasticsearch/data
healthcheck:
test: ["CMD-SHELL", "curl --silent --fail localhost:9200/_cluster/health || exit 1"]
interval: 30s
timeout: 30s
retries: 3
kibana:
container_name: kibana
image: docker.elastic.co/kibana/kibana:7.1.1
environment:
- ELASTICSEARCH_HOSTS=http://es01:9200
ports:
- 5601:5601
depends_on:
- es01
# Named Volumes Configuration.
volumes:
postgresql:
mongodb:
esdata01: