-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
91 lines (84 loc) · 2.19 KB
/
docker-compose.yaml
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
version: "3.6"
services:
mysql:
container_name: mysql
image: mysql:8.0.28
restart: always
ports:
- "3306:3306"
volumes:
- "./data/mysql:/var/lib/mysql"
environment:
MYSQL_ROOT_PASSWORD: secret
redis:
container_name: redis
image: redis
restart: always
ports:
- "6379:6379"
volumes:
- ./data:/data
elasticsearch:
container_name: elasticsearch
image: elasticsearch:7.9.1
volumes:
- ./config/elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- ./data/elasticsearch:/usr/share/elasticsearch/data/
environment:
- discovery.type=single-node
- http.host=0.0.0.0
- transport.host=0.0.0.0
- xpack.security.enabled=false
- xpack.monitoring.enabled=false
- cluster.name=elasticsearch
- bootstrap.memory_lock=true
ports:
- 9300:9300
- 9200:9200
networks:
- socialmedia
logstash:
container_name: logstash
image: logstash:7.9.1
volumes:
- ./config/logstash/logstash.conf:/usr/share/logstash/pipeline/logstash.conf
- ./config/logstash/logstash.yml:/usr/share/logstash/config/logstash.yml
- ./data/logstash:/usr/share/logstash/data
ports:
- 5044:5044
- 50000:50000/tcp
- 50000:50000/udp
- 9600:9600
depends_on:
- elasticsearch
restart: unless-stopped
networks:
- socialmedia
kibana:
container_name: kibana
image: kibana:7.9.1
volumes:
- ./config/kibana/kibana.yml:/usr/share/kibana/config/kibana.yml
- ./data/kibana:/usr/share/kibana/data
ports:
- 5601:5601
environment:
KIBANA_SYSTEM_PASSWORD: socialmedia
depends_on:
- elasticsearch
restart: unless-stopped
networks:
- socialmedia
localstack:
container_name: "localstack"
image: localstack/localstack
restart: always
ports:
- "127.0.0.1:4566:4566" # LocalStack Gateway
- "127.0.0.1:4510-4559:4510-4559" # external services port range
volumes:
- "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
networks:
socialmedia:
driver: bridge