-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
67 lines (61 loc) · 1.3 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
version: '3.7'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.4.0
container_name: es01
environment:
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
volumes:
- esdata01:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- esnet
kibana:
image: docker.elastic.co/kibana/kibana:7.4.0
ports:
- 5601:5601
networks:
- esnet
metricbeat:
image: docker.elastic.co/beats/metricbeat:7.4.0
environment:
- setup.kibana.host=kibana:5601
- output.elasticsearch.hosts=["elasticsearch:9200"]
- KIBANA_HOST=kibana:5601
networks:
- esnet
db:
build: ./db
command: --default-authentication-plugin=mysql_native_password
ports:
- 3306:3306
networks:
- esnet
env_file:
- ./development.env
volumes:
- my-db:/var/lib/mysql
- ./db/filebeat.yml:/etc/filebeat/filebeat.yml
web:
build:
context: ./web
ports:
- 8080:80
volumes:
- ./web/src:/var/www/html/
- ./web/filebeat.yml:/etc/filebeat/filebeat.yml
networks:
- esnet
depends_on:
- db
env_file:
- ./development.env
volumes:
esdata01:
driver: local
my-db:
driver: local
networks:
esnet: