-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
74 lines (68 loc) · 1.63 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
# spring-boot-docker/docker-compose.yml
version: "3.7"
services:
mysql-service:
image: mysql:8.0.20
networks:
- spring-boot-mysql-network
restart: always
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=apricot
volumes:
- db-data:/var/lib/mysql
web-service:
image: tarangparikh/apricot:latest
ports:
- "80:8080"
networks:
- spring-boot-mysql-network
volumes:
- db-store:/logs
depends_on:
- logstash
- mysql-service
logstash:
image: docker.elastic.co/logstash/logstash:7.5.2
command: -f /etc/logstash/conf.d/
volumes:
- ./containers/logstash/logstash.conf:/etc/logstash/conf.d/logstash.conf
- db-store:/temp
ports:
- "5000:5000"
- "9600:9600"
networks:
- spring-boot-mysql-network
environment:
LS_JAVA_OPTS: "-Xmx256m -Xms256m"
depends_on:
- elasticsearch
elasticsearch:
image: elasticsearch:7.7.0
ports:
- "9200:9200"
- "9300:9300"
# volumes:
# - ./containers/elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
networks:
- spring-boot-mysql-network
environment:
- discovery.type=single-node
elastic-kib:
image: kibana:7.7.0
ports:
- "5601:5601"
networks:
- spring-boot-mysql-network
# volumes:
# - ./containers/kibana/kibana.yml:/usr/share/kibana/config/kibana.yml
environment:
ELASTICSEARCH_HOSTS: http://elasticsearch:9200
depends_on:
- elasticsearch
volumes:
db-data:
db-store:
networks:
spring-boot-mysql-network:
driver: bridge