forked from mpiot/collection-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
100 lines (91 loc) · 2.23 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
version: '3.2'
services:
nginx:
build: docker/dev/nginx
depends_on:
- app
networks:
- frontend
volumes:
- .:/app
app:
build: docker/dev/app
depends_on:
- redis
- rabbitmq
- db
- es1
networks:
- frontend
- backend
volumes:
- .:/app
db:
image: mysql:5.7.21
environment:
- MYSQL_ROOT_PASSWORD=collection-manager
- MYSQL_USER=collection-manager
- MYSQL_PASSWORD=collection-manager
- MYSQL_DATABASE=collection-manager
volumes:
- db_data:/var/lib/mysql
networks:
- backend
es1:
build: ./docker/common/elasticsearch
environment:
- cluster.name=collection-manager-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- es1_data:/usr/share/elasticsearch/data
networks:
- backend
es2:
build: ./docker/common/elasticsearch
environment:
- cluster.name=collection-manager-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "discovery.zen.ping.unicast.hosts=es1"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- es2_data:/usr/share/elasticsearch/data
networks:
- backend
rabbitmq:
image: rabbitmq:3.7.3
environment:
- RABBITMQ_DEFAULT_USER=collection-manager
- RABBITMQ_DEFAULT_PASS=collection-manager
volumes:
- rabbitmq_data:/var/lib/rabbitmq
networks:
- backend
redis:
image: redis:4.0.8
volumes:
- redis_data:/data
networks:
- backend
volumes:
db_data:
driver: local
es1_data:
driver: local
es2_data:
driver: local
rabbitmq_data:
driver: local
redis_data:
driver: local
networks:
frontend:
backend: