-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose_nginx.yml
117 lines (111 loc) · 4.19 KB
/
docker-compose_nginx.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
version: '3.9'
services:
jira:
image: atlassian/jira-software:${JIRA_VERSION:-latest}
container_name: jira
restart: unless-stopped
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:
- nginx
confluence:
image: atlassian/confluence:${CONFLUENCE_VERSION:-latest}
container_name: confluence
restart: unless-stopped
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:
- nginx
bitbucket:
image: atlassian/bitbucket:${BITBUCKET_VERSION:-latest}
container_name: bitbucket
restart: unless-stopped
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:
- nginx
nginx:
image: nginx:${NGINX_VERSION:-latest}
container_name: nginx
restart: unless-stopped
ports:
- ${NGINX_HTTP_PORT:-80}:80
- ${NGINX_HTTPS_PORT:-443}:443
environment:
# 时区
- TZ=Asia/Shanghai
volumes:
- ./nginx/certs:/etc/nginx/certs
- ./nginx/conf.d:/etc/nginx/conf.d
networks:
default:
aliases:
- ${JIRA_PROXY_NAME:-jira.example.com}
- ${CONFLUENCE_PROXY_NAME:-confluence.example.com}
- ${BITBUCKET_PROXY_NAME:-bitbucket.example.com}
networks:
default:
name: atlassian
ipam:
config:
- subnet: ${NETWORK_SUBNET:-172.23.0.0/16}
volumes:
jira-data:
confluence-data:
bitbucket-data: