-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose_mysql.yml
189 lines (181 loc) · 6.25 KB
/
docker-compose_mysql.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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
version: '3.9'
services:
jira:
image: atlassian/jira-software:${JIRA_VERSION:-latest}
container_name: jira
restart: unless-stopped
ports:
- ${JIRA_PORT:-8080}:8080
environment:
# 代理服务器
- ATL_PROXY_NAME=${JIRA_PROXY_NAME:-jira.example.com}
- ATL_PROXY_PORT=${JIRA_PROXY_PORT:-80}
- ATL_TOMCAT_SCHEME=${JIRA_SCHEME:-http}
- ATL_TOMCAT_SECURE=${JIRA_SECURE:-false}
# 内存
- JVM_MINIMUM_MEMORY=${JIRA_MINIMUM_MEMORY:-384m}
- JVM_MAXIMUM_MEMORY=${JIRA_MAXIMUM_MEMORY:-768m}
- JVM_RESERVED_CODE_CACHE_SIZE=${JIRA_RESERVED_CODE_CACHE_SIZE:-512m}
# 注册代理路径
- JAVA_OPTS=-javaagent:/opt/atlassian/jira/atlassian-jira/WEB-INF/lib/atlassian-agent-1.3.1.jar
# 时区
- TZ=Asia/Shanghai
volumes:
# 数据卷
- jira-data:/var/atlassian/application-data/jira
# MySQL 8.0 连接器
- ./utils/mysql-connector-j-8.0.31.jar:/opt/atlassian/jira/lib/mysql-connector-j-8.0.31.jar
# 注册代理
- ./utils/atlassian-agent-1.3.1.jar:/opt/atlassian/jira/atlassian-jira/WEB-INF/lib/atlassian-agent-1.3.1.jar
depends_on:
- jira-mysql
confluence:
image: atlassian/confluence:${CONFLUENCE_VERSION:-latest}
container_name: confluence
restart: unless-stopped
ports:
- ${CONFLUENCE_PORT:-8090}:8090
environment:
# 代理服务器
- ATL_PROXY_NAME=${CONFLUENCE_PROXY_NAME:-confluence.example.com}
- ATL_PROXY_PORT=${CONFLUENCE_PROXY_PORT:-80}
- ATL_TOMCAT_SCHEME=${CONFLUENCE_SCHEME:-http}
- ATL_TOMCAT_SECURE=${CONFLUENCE_SECURE:-false}
# 内存
- JVM_MINIMUM_MEMORY=${CONFLUENCE_MINIMUM_MEMORY:-1024m}
- JVM_MAXIMUM_MEMORY=${CONFLUENCE_MAXIMUM_MEMORY:-1024m}
- JVM_RESERVED_CODE_CACHE_SIZE=${CONFLUENCE_RESERVED_CODE_CACHE_SIZE:-256m}
# 注册代理路径
- JAVA_OPTS=-javaagent:/opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-agent-1.3.1.jar
# 时区
- TZ=Asia/Shanghai
volumes:
# 数据卷
- confluence-data:/var/atlassian/application-data/confluence
# MySQL 8.0 连接器
- ./utils/mysql-connector-j-8.0.31.jar:/opt/atlassian/confluence/confluence/WEB-INF/lib/mysql-connector-j-8.0.31.jar
# 注册代理
- ./utils/atlassian-agent-1.3.1.jar:/opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-agent-1.3.1.jar
depends_on:
- confluence-mysql
bitbucket:
image: atlassian/bitbucket:${BITBUCKET_VERSION:-latest}
container_name: bitbucket
restart: unless-stopped
ports:
- ${BITBUCKET_PORT:-7990}:7990
environment:
# 代理服务器
- SERVER_PROXY_NAME=${BITBUCKET_PROXY_NAME:-bitbucket.example.com}
- SERVER_PROXY_PORT=${BITBUCKET_PROXY_PORT:-80}
- SERVER_SCHEME=${BITBUCKET_SCHEME:-http}
- SERVER_SECURE=${BITBUCKET_SECURE:-false}
# 内存
- JVM_MINIMUM_MEMORY=${BITBUCKET_MINIMUM_MEMORY:-512m}
- JVM_MAXIMUM_MEMORY=${BITBUCKET_MAXIMUM_MEMORY:-1024m}
# 注册代理路径
- JVM_SUPPORT_RECOMMENDED_ARGS=-javaagent:/opt/atlassian/bitbucket/app/WEB-INF/lib/atlassian-agent-1.3.1-bitbucket.jar
# 时区
- TZ=Asia/Shanghai
volumes:
# 数据卷
- bitbucket-data:/var/atlassian/application-data/bitbucket
# MySQL 5.1 连接器(不支持 8.0 连接器)
- ./utils/mysql-connector-java-5.1.49.jar:/opt/atlassian/bitbucket/app/WEB-INF/lib/mysql-connector-java-5.1.49.jar
# 注册代理(不能生成授权码)
- ./utils/atlassian-agent-1.3.1-bitbucket.jar:/opt/atlassian/bitbucket/app/WEB-INF/lib/atlassian-agent-1.3.1-bitbucket.jar
depends_on:
- bitbucket-mysql
jira-mysql:
image: mysql:${MYSQL_VERSION:-latest}
container_name: jira-mysql
restart: unless-stopped
command:
[
mysqld,
--character-set-server=utf8mb4,
--collation-server=utf8mb4_bin,
--default-storage-engine=INNODB,
--innodb-default-row-format=DYNAMIC,
--innodb-log-file-size=2G
]
environment:
# root 密码
- MYSQL_ROOT_PASSWORD=${JIRA_MYSQL_ROOT_PASSWORD:-atlassian}
# 数据库名
- MYSQL_DATABASE=${JIRA_MYSQL_DATABASE:-jira}
# 用户名
- MYSQL_USER=${JIRA_MYSQL_USER:-jira}
# 密码
- MYSQL_PASSWORD=${JIRA_MYSQL_PASSWORD:-jira}
# 时区
- TZ=Asia/Shanghai
volumes:
- jira-mysql:/var/lib/mysql
confluence-mysql:
image: mysql:${MYSQL_VERSION:-latest}
container_name: confluence-mysql
restart: unless-stopped
command:
[
mysqld,
--character-set-server=utf8mb4,
--collation-server=utf8mb4_bin,
--default-storage-engine=INNODB,
--max-allowed-packet=256M,
--innodb-log-file-size=2G,
--transaction-isolation=READ-COMMITTED,
--binlog-format=ROW,
--log-bin-trust-function-creators=1
]
environment:
# root 密码
- MYSQL_ROOT_PASSWORD=${CONFLUENCE_MYSQL_ROOT_PASSWORD:-atlassian}
# 数据库名
- MYSQL_DATABASE=${CONFLUENCE_MYSQL_DATABASE:-confluence}
# 用户名
- MYSQL_USER=${CONFLUENCE_MYSQL_USER:-confluence}
# 密码
- MYSQL_PASSWORD=${CONFLUENCE_MYSQL_PASSWORD:-confluence}
# 时区
- TZ=Asia/Shanghai
volumes:
- confluence-mysql:/var/lib/mysql
bitbucket-mysql:
image: mysql:${MYSQL_VERSION:-latest}
container_name: bitbucket-mysql
restart: unless-stopped
command:
[
mysqld,
--character-set-server=utf8,
--collation-server=utf8_bin,
--binlog-format=MIXED,
--transaction-isolation=READ-COMMITTED
]
environment:
# root 密码
- MYSQL_ROOT_PASSWORD=${BITBUCKET_MYSQL_ROOT_PASSWORD:-atlassian}
# 数据库名
- MYSQL_DATABASE=${BITBUCKET_MYSQL_DATABASE:-bitbucket}
# 用户名
- MYSQL_USER=${BITBUCKET_MYSQL_USER:-bitbucket}
# 密码
- MYSQL_PASSWORD=${BITBUCKET_MYSQL_PASSWORD:-bitbucket}
# 时区
- TZ=Asia/Shanghai
volumes:
- bitbucket-mysql:/var/lib/mysql
networks:
default:
name: atlassian
ipam:
config:
- subnet: ${NETWORK_SUBNET:-172.23.0.0/16}
volumes:
jira-data:
confluence-data:
bitbucket-data:
jira-mysql:
confluence-mysql:
bitbucket-mysql: