-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (68 loc) · 1.67 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
version: "3.7"
services:
userservice-db:
image: mysql:8.0.24
command: --default-authentication-plugin=mysql_native_password
restart: always
container_name: userservice-db
hostname: userservice-db
environment:
MYSQL_ROOT_PASSWORD: letschess123
MYSQL_USER: 'test'
MYSQL_PASS: 'pass'
ports:
- 6003:3306
volumes:
- userservice-db-data:/var/lib/mysql
networks:
- userservice_network
rabbitmq:
image: rabbitmq:3-management-alpine
container_name: rabbitmq
ports:
- 5672:5672
- 15672:15672
environment:
- RABBITMQ_DEFAULT_USER=letschess
- RABBITMQ_DEFAULT_PASS=ht4boiuehgjofmcjhyudi
volumes:
- rabbitmq:/var/lib/rabbitmq/
- rabbitmq:/var/log/rabbitmq/
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.12.1
container_name: elasticsearch
environment:
- node.name=elasticsearch
- cluster.name=es-docker-cluster
- cluster.initial_master_nodes=elasticsearch
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- elastic:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- elastic
kib01:
image: docker.elastic.co/kibana/kibana:7.12.1
container_name: kib01
ports:
- 5601:5601
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
ELASTICSEARCH_HOSTS: '["http://elasticsearch:9200"]'
networks:
- elastic
volumes:
userservice-db-data:
elastic:
driver: local
rabbitmq:
networks:
userservice_network:
elastic:
driver: bridge