This repository was archived by the owner on Dec 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.dev.yml
92 lines (85 loc) · 1.94 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
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
version: '3'
services:
# Web Service
web:
container_name: mccs
build:
context: .
dockerfile: dockerfile.dev
volumes:
# mounts the current directory to /usr/src/app in the container
- ./:/usr/src/app
ports:
- 8080:8080
depends_on:
- postgres
- mongo
- redis
- es01
# PostgreSQL Service
postgres:
container_name: postgres
image: postgres:11.4
# Log all statements to the PostgreSQL log.
command: ["postgres", "-c", "log_statement=all"]
ports:
- 5432:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_DB=mccs
volumes:
- postgresql:/var/lib/postgresql/data
# MongoDB Service
mongo:
container_name: mongo
image: mongo:4.0.10
ports:
- 27017:27017
volumes:
- mongodb:/data/db
# Redis Service
redis:
container_name: redis
image: redis:alpine
command: redis-server --requirepass sOmE_sEcUrE_pAsS
ports:
- 6379:6379
environment:
- REDIS_REPLICATION_MODE=master
volumes:
- redis:/data
# Elasticsearch Service
es01:
container_name: es01
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.5
environment:
- node.name=es01
# single-node discovery type.
- 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 Service
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
# Persistent Volumes
volumes:
postgresql:
mongodb:
redis:
esdata01: