-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose-lnkmgrdev.yml
316 lines (267 loc) · 8.02 KB
/
docker-compose-lnkmgrdev.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
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
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
version: "2"
# This variant of the docker-compose file maps the link manager
# directories to my local development version for ease of
# development. It's not intended to be run in production.
#
# DITA For Small Teams (D4ST) Docker compose
# run configuration file. Will run all the
# containers with appropriate default settings.
#
# FIXME: Parameterize all appropriate options
# with variables with defaults (defined
# in the relevant docker files).
#
# It runs the DITA OT container, the gitlab
# server (for shared git access and continuous
# integration), and the D4ST Link Manager application.
#
# Gitlab is exposed on the default ports 80 and 443
# for HTTP/HTTPS access and 8022 for SSH
#
# The Link Manager is exposed on the default ports
# of 8984 for the Web app and 1984 for the underlying
# BaseX server (used by the git hooks installed in the
# GitLab repositories).
#
# The Web server is exposed on port 80.
#
volumes:
git-data:
redis:
postgress:
basex-data:
dita-ot-data:
dita-ot-out:
gitlabrunner-config:
services:
#
# DITA OT
#
# This container provides access to a DITA Open Toolkit
# instace. GitLab uses it to run the OT, BaseX uses
# it for access to DTDs.
#
dita-ot:
extends:
file: containers/dita-ot/docker-compose.yml
service: dita-ot-d4st
volumes:
- dita-ot-data:/opt/dita-ot/data:Z
- dita-ot-out:/opt/dita-ot/out:Z
volumes_from:
- web-delivery
#
# D4ST Link Manager
#
# The Link Manager provides link-related information
# for use by authors via an interactive Web app
# or other applications via REST API.
#
#
# Link Manager server:
#
linkmgr:
image: d4st/link-manager-basex
container_name: linkmgr-d4st
ports:
- "1984:1984"
- "${LINKMGR_PORT}:8984"
environment:
- USER
- USERNAME
- OXYWEBAUTHOR_PORT
- ENCRYPT_KEY=swordfish
volumes:
- basex-data:/srv/BaseXData
- /Users:/Users
# Use local development versions rather than what's in the container:
- ${HOME}/workspace-dfst/dfst-linkmgmt-basex/modules:/srv/BaseXRepo
- ${HOME}/workspace-dfst/dfst-linkmgmt-basex/webapp:/srv/BaseXWeb
volumes_from:
- dita-ot
#
# GitLab
#
# NOTE: Using extends with a separate compose file caused gitlab startup to
# fail because it didn't have correct permissions on the potsgresql
# server to configure the pg_trgm feature. I don't know why.
#
# Copied from https://github.com/sameersbn/docker-gitlab/blob/master/docker-compose.yml
#
# Runs the required postgresql and redis servers:
#
redis:
restart: always
image: sameersbn/redis:latest
command:
- --loglevel warning
volumes:
- redis:/var/lib/redis:Z
postgresql:
restart: always
image: sameersbn/postgresql:9.6-2
volumes:
- postgress:/var/lib/postgresql:Z
environment:
- DB_USER=gitlab
- DB_PASS=password
- DB_NAME=gitlabhq_production
- DB_EXTENSION=pg_trgm
gitlab-d4st:
restart: always
# image: sameersbn/gitlab:8.17.3
image: d4st/gitlab-d4st
container_name: gitlab-d4st
depends_on:
- redis
- postgresql
ports:
- "${GITLAB_PORT}:80"
- "${GITLAB_SSH_PORT}:22"
volumes:
# Create a named volume rather than a local mount:
- git-data:/home/git/data:Z
- ${HOME}/workspace-dfst/dita-for-small-teams/commit-hooks/git/server-side:/var/opt/d4st/custom_hooks
environment:
- GITLAB_SECRETS_DB_KEY_BASE=S8ZRV6kN43LQ2sQVmVfTlM32jLzj8FFLf6L6WzxtjwqnXkZlzpc5tc3C7cXbgrqt
- GITLAB_SECRETS_SECRET_KEY_BASE=S8ZRV6kN43LQ2sQVmVfTlM32jLzj8FFLf6L6WzxtjwqnXkZlzpc5tc3C7cXbgrqt
- GITLAB_SECRETS_OTP_KEY_BASE=S8ZRV6kN43LQ2sQVmVfTlM32jLzj8FFLf6L6WzxtjwqnXkZlzpc5tc3C7cXbgrqt
- DEBUG=false
- DB_ADAPTER=postgresql
- DB_HOST=postgresql
- DB_PORT=5432
- DB_USER=gitlab
- DB_PASS=password
- DB_NAME=gitlabhq_production
- REDIS_HOST=redis
- REDIS_PORT=6379
- TZ=Asia/Kolkata
- GITLAB_TIMEZONE=Kolkata
- GITLAB_HTTPS=false
- SSL_SELF_SIGNED=false
- GITLAB_HOST=gitlab-d4st
# Using 80 instead of ${GITLAB_PORT} so within-docker connections will work.
- GITLAB_PORT=80
- GITLAB_SSH_PORT=${GITLAB_SSH_PORT}
- GITLAB_RELATIVE_URL_ROOT=
- GITLAB_ROOT_PASSWORD=
- GITLAB_ROOT_EMAIL=
- GITLAB_NOTIFY_ON_BROKEN_BUILDS=true
- GITLAB_NOTIFY_PUSHER=false
- GITLAB_EMAIL=notifications@example.com
- GITLAB_EMAIL_REPLY_TO=noreply@example.com
- GITLAB_INCOMING_EMAIL_ADDRESS=reply@example.com
- GITLAB_BACKUP_SCHEDULE=daily
- GITLAB_BACKUP_TIME=01:00
- SMTP_ENABLED=false
- SMTP_DOMAIN=www.example.com
- SMTP_HOST=smtp.gmail.com
- SMTP_PORT=587
- SMTP_USER=mailer@example.com
- SMTP_PASS=password
- SMTP_STARTTLS=true
- SMTP_AUTHENTICATION=login
- IMAP_ENABLED=false
- IMAP_HOST=imap.gmail.com
- IMAP_PORT=993
- IMAP_USER=mailer@example.com
- IMAP_PASS=password
- IMAP_SSL=true
- IMAP_STARTTLS=false
- OAUTH_ENABLED=false
- OAUTH_AUTO_SIGN_IN_WITH_PROVIDER=
- OAUTH_ALLOW_SSO=
- OAUTH_BLOCK_AUTO_CREATED_USERS=true
- OAUTH_AUTO_LINK_LDAP_USER=false
- OAUTH_AUTO_LINK_SAML_USER=false
- OAUTH_EXTERNAL_PROVIDERS=
- OAUTH_CAS3_LABEL=cas3
- OAUTH_CAS3_SERVER=
- OAUTH_CAS3_DISABLE_SSL_VERIFICATION=false
- OAUTH_CAS3_LOGIN_URL=/cas/login
- OAUTH_CAS3_VALIDATE_URL=/cas/p3/serviceValidate
- OAUTH_CAS3_LOGOUT_URL=/cas/logout
- OAUTH_GOOGLE_API_KEY=
- OAUTH_GOOGLE_APP_SECRET=
- OAUTH_GOOGLE_RESTRICT_DOMAIN=
- OAUTH_FACEBOOK_API_KEY=
- OAUTH_FACEBOOK_APP_SECRET=
- OAUTH_TWITTER_API_KEY=
- OAUTH_TWITTER_APP_SECRET=
- OAUTH_GITHUB_API_KEY=
- OAUTH_GITHUB_APP_SECRET=
- OAUTH_GITHUB_URL=
- OAUTH_GITHUB_VERIFY_SSL=
- OAUTH_GITLAB_API_KEY=
- OAUTH_GITLAB_APP_SECRET=
- OAUTH_BITBUCKET_API_KEY=
- OAUTH_BITBUCKET_APP_SECRET=
- OAUTH_SAML_ASSERTION_CONSUMER_SERVICE_URL=
- OAUTH_SAML_IDP_CERT_FINGERPRINT=
- OAUTH_SAML_IDP_SSO_TARGET_URL=
- OAUTH_SAML_ISSUER=
- OAUTH_SAML_LABEL="Our SAML Provider"
- OAUTH_SAML_NAME_IDENTIFIER_FORMAT=urn:oasis:names:tc:SAML:2.0:nameid-format:transient
- OAUTH_SAML_GROUPS_ATTRIBUTE=
- OAUTH_SAML_EXTERNAL_GROUPS=
- OAUTH_SAML_ATTRIBUTE_STATEMENTS_EMAIL=
- OAUTH_SAML_ATTRIBUTE_STATEMENTS_NAME=
- OAUTH_SAML_ATTRIBUTE_STATEMENTS_FIRST_NAME=
- OAUTH_SAML_ATTRIBUTE_STATEMENTS_LAST_NAME=
- OAUTH_CROWD_SERVER_URL=
- OAUTH_CROWD_APP_NAME=
- OAUTH_CROWD_APP_PASSWORD=
- OAUTH_AUTH0_CLIENT_ID=
- OAUTH_AUTH0_CLIENT_SECRET=
- OAUTH_AUTH0_DOMAIN=
- OAUTH_AZURE_API_KEY=
- OAUTH_AZURE_API_SECRET=
- OAUTH_AZURE_TENANT_ID=
volumes_from:
- dita-ot
- linkmgr
#
# Define the GitLab runner
# that will be used to run build jobs;
#
gitlab-runner:
image: gitlab/gitlab-runner:latest
container_name: gitlab-runner
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- gitlabrunner-config:/etc/gitlab-runner
volumes_from:
- dita-ot
#
# Web server for HTML delivery
#
web-delivery:
extends:
file: containers/caddy-d4st/docker-compose.yml
service: caddy-d4st
volumes:
- ${HOME}/tmp/webdelivery:/srv/www
#
# Demo content data volume:
#
# Using top as the command so the container is always running
# so we can then copy files out of it (which requires a running
# container).
#
# Defines volume /opt/dita-community/data/Thunderbird
#
demo-content:
image: ditacommunity/demo-content
container_name: demo-content
command: top
#
# Oxygen Web Author server
#
oxywebauthor:
extends:
file: containers/oxywebauthor-d4st/docker-compose.yml
service: oxywebauthor-d4st
#
# End of compose file.
#