-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
118 lines (110 loc) · 3.13 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
version: '2'
services:
openfire1:
restart: always
depends_on:
- db
- beat
image: abdurrahmanekr/openfire:4.6.2-apm
pid: "host"
ports:
- "17070:7070"
- "19090:9090"
volumes:
- 'openfire-data:/var/lib/openfire'
- 'openfire-plugins:/usr/share/openfire/plugins'
- 'openfire-lib:/usr/share/openfire-custom-libs'
environment:
APM_HOST: 'beat'
OPENFIRE_OPTS: "-Xmx2G -Xms512m -XX:NewRatio=1 -XX:SurvivorRatio=4 -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled -XX:CMSFullGCsBeforeCompaction=1 -XX:CMSInitiatingOccupancyFraction=80 -XX:+UseCMSInitiatingOccupancyOnly -XX:+PrintGCDetails -XX:+PrintPromotionFailure"
networks:
- apm
openfire2:
restart: always
depends_on:
- db
- beat
image: abdurrahmanekr/openfire:4.5.1-apm
pid: "host"
ports:
- "17071:7070"
- "19091:9090"
volumes:
- 'openfire-data:/var/lib/openfire'
- 'openfire-plugins:/usr/share/openfire/plugins'
- 'openfire-lib:/usr/share/openfire-custom-libs'
environment:
APM_HOST: 'beat'
OPENFIRE_OPTS: "-Xmx2G -Xms512m -XX:NewRatio=1 -XX:SurvivorRatio=4 -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled -XX:CMSFullGCsBeforeCompaction=1 -XX:CMSInitiatingOccupancyFraction=80 -XX:+UseCMSInitiatingOccupancyOnly -XX:+PrintGCDetails -XX:+PrintPromotionFailure"
networks:
- apm
beat:
image: docker.elastic.co/apm/apm-server:7.1.1
ports:
- "8200:8200"
- "8201:8200"
environment:
- apm-server.host=0.0.0.0
volumes:
- ./apm-server.yml:/usr/share/apm-server/apm-server.yml
networks:
- apm
depends_on:
- elasticsearch
- kibana
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.1.1
environment:
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- discovery.type=single-node
- http.host=0.0.0.0
- transport.host=127.0.0.1
- ELASTIC_PASSWORD=password
networks:
- apm
ports:
- "9200:9200"
kibana:
image: docker.elastic.co/kibana/kibana:7.1.1
ports:
- "5601:5601"
networks:
- apm
environment:
- ELASTICSEARCH_URL=http://elasticsearch:9200
- ELASTICSEARCH_USERNAME=kibana
- ELASTICSEARCH_PASSWORD=password
depends_on:
- elasticsearch
# DATABASE
db:
image: mysql:5.7.26
restart: always
ports:
- "3307:3306"
volumes:
- 'openfire-mysql:/var/lib/mysql'
- 'openfire-mysql-log:/var/log/mysql'
command: ["--default-authentication-plugin=mysql_native_password", "--character-set-server=utf8mb4", "--collation-server=utf8mb4_general_ci", "--max_allowed_packet=132505856"]
environment:
MYSQL_ROOT_PASSWORD: '1234'
MYSQL_DATABASE: 'openfire'
networks:
- apm
rabbitmq:
image: rabbitmq:3-management
restart: always
ports:
- "15672:15672"
- "5672:5672"
networks:
- apm
volumes:
openfire-data:
openfire-plugins:
openfire-lib:
openfire-mysql:
openfire-mysql-log:
networks:
apm:
driver: bridge