-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
83 lines (76 loc) · 1.66 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
version: "3.8"
networks:
app-tier:
driver: bridge
services:
# mysql container
mysql:
image: mariadb:10.5.8-focal
restart: always
volumes:
- ./mysql_data:/var/lib/mariadb/data/
env_file:
- ./settings/.env.db
ports:
- "3306:3306"
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
# elasticsearch container
elasticsearch:
build: elasticsearch
restart: always
ports:
- "9200:9200"
- "9300:9300"
volumes:
- ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
environment:
ES_JAVA_OPTS: "-Xmx256m -Xms256m"
# logstash container
logstash:
build: logstash
restart: always
ports:
- "5001:5001"
volumes:
- ./logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml
- ./logstash/pipeline:/usr/share/logstash/pipeline
environment:
LS_JAVA_OPTS: "-Xmx256m -Xms256m"
depends_on:
- elasticsearch
env_file:
- ./settings/.env.logstash
# kibana container
kibana:
build: kibana
restart: always
volumes:
- ./kibana/config/kibana.yml:/usr/share/kibana/config/kibana.yml
ports:
- "5601:5601"
depends_on:
- elasticsearch
# server container
server:
image: anwlro7958/fuding:server
ports:
- "8080:8080"
volumes:
- ./server:/app
networks:
- app-tier
restart: always
# client container
client:
image: anwlro7958/fuding:client
ports:
- "3000:3000"
volumes:
- ./client:/app
networks:
- app-tier
restart: always
volumes:
mysql_data: