-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yaml
238 lines (169 loc) · 5.18 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
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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
version: '3'
services:
nginx:
container_name: Nginx
image: nginx:stable-alpine
restart: unless-stopped
networks:
extnetwork:
ipv4_address: 172.20.1.1
#volumes:
# - /home/nginx/conf.d:/etc/nginx/conf.d
environment:
TZ: "Asia/Shanghai"
ports:
- '80:80'
- '443:443'
portainer:
container_name: Portainer
image: portainer/portainer-ce:latest
restart: unless-stopped
networks:
extnetwork:
ipv4_address: 172.20.1.2
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/portainer:/data
environment:
TZ: "Asia/Shanghai"
#ports:
# - '9000:9000'
# - '9443:9443'
postgres:
container_name: Postgres14
image: postgres:14-alpine
restart: unless-stopped
networks:
extnetwork:
ipv4_address: 172.20.1.3
volumes:
- /home/postgresql/data:/var/lib/postgresql/data
environment:
TZ: "Asia/Shanghai"
POSTGRES_PASSWORD: "password"
ports:
- '5432:5432'
confluence:
container_name: Confluence
user: '2002:2002'
image: atlassian/confluence
restart: unless-stopped
networks:
extnetwork:
ipv4_address: 172.20.1.4
volumes:
- /home/confluence:/var/atlassian/application-data/confluence
environment:
TZ: "Asia/Shanghai"
JVM_MINIMUM_MEMORY: "1024m"
JVM_MAXIMUM_MEMORY: "32768m"
ATL_PROXY_NAME: "wiki.zchd.com"
ATL_PROXY_PORT: "80"
JAVA_OPTS: "-javaagent:/var/atlassian/application-data/confluence/atlassian-agent.jar"
# 管理员密码丢失之后启用下面那行进入恢复模式 用户名 recovery_admin 密码 下面自定义
#- JVM_SUPPORT_RECOMMENDED_ARGS: "-Datlassian.recovery.password=0o0o0o0o0o0o0o0000o0o"
ports:
- '8090:8090'
- '8091:8091'
jira:
container_name: Jira
user: '2001:2001'
image: atlassian/jira-servicemanagement
restart: unless-stopped
networks:
extnetwork:
ipv4_address: 172.20.1.5
volumes:
- /home/jira:/var/atlassian/application-data/jira
environment:
- TZ=Asia/Shanghai
- JVM_MINIMUM_MEMORY=1024m
- JVM_MAXIMUM_MEMORY=8192m
- ATL_PROXY_NAME=jira.camel.com
- ATL_PROXY_PORT=80
- JAVA_OPTS="-javaagent:/var/atlassian/application-data/jira/atlassian-agent.jar"
#ports:
#- '8090:8090'
#- '8091:8091'
crowd:
container_name: Crowd
user: '2004:2004'
image: atlassian/crowd
restart: unless-stopped
networks:
extnetwork:
ipv4_address: 172.20.1.6
volumes:
- /home/crowd:/var/atlassian/application-data/crowd
environment:
TZ: "Asia/Shanghai"
JVM_MINIMUM_MEMORY: "1024m"
JVM_MAXIMUM_MEMORY: "4096m"
ATL_PROXY_NAME: "crowd.camel.com"
ATL_PROXY_PORT: "80"
JAVA_OPTS: "-javaagent:/var/atlassian/application-data/crowd/atlassian-agent.jar"
#ports:
# - 8095:8095
gitlab:
container_name: Gitlab
image: gitlab/gitlab-ce:latest
restart: unless-stopped
networks:
extnetwork:
ipv4_address: 172.20.1.7
volumes:
- /home/gitlab/config:/etc/gitlab
- /home/gitlab/log:/var/log/gitlab
- /home/gitlab/data:/var/opt/gitlab
ports:
- '2022:22'
#- '20080:80'
#- '20443:443'
# grafana:
# container_name: Grafana
# user: '472:472'
#
# image: grafana/grafana
# restart: unless-stopped
#
# networks:
# extnetwork:
# ipv4_address: 172.20.1.9
#
# volumes:
# - /home/grafana:/var/lib/grafana
#
# #ports:
# # - 3000:3000
# prometheus:
# container_name: Prometheus
#
# image: prom/prometheus
# restart: unless-stopped
#
# networks:
# extnetwork:
# ipv4_address: 172.20.1.10
#
# volumes:
# - /home/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
#
# ports:
# - 9090:9090
watchtower:
container_name: WatchTower
image: containrrr/watchtower
restart: unless-stopped
networks:
- extnetwork
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
TZ: "Asia/Shanghai"
command: --schedule "0 0 1 * * *" Nginx Portainer Gitlab
networks:
extnetwork:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16