forked from blaineventurine/home-automation-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.utilities.yml
executable file
·293 lines (279 loc) · 8.52 KB
/
docker-compose.utilities.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
version: "3.7"
services:
pihole:
image: pihole/pihole:latest
container_name: pihole
ports:
- "${LOCAL_IP}:53:53/tcp"
- "${LOCAL_IP}:53:53/udp"
# - "${LOCAL_IP}:80:80/tcp"
- "${LOCAL_IP}:7443:443/tcp"
- "${LOCAL_IP}:7080:80/tcp"
# cap_add:
# - NET_ADMIN
# depends_on:
# - traefik
environment:
# ServerIP: ${LOCAL_IP}
WEBPASSWORD: ${PIHOLE_PASSWORD}
VIRTUAL_PORT: 80
# DNS1: 192.168.1.2#5322
# DNS1: ${LOCAL_IP}#5322
DNS1: 1.1.1.1
DNS2: "no"
IPv6: "no"
TZ: ${TZ}
DNSSEC: "true"
# PROXY_LOCATION: pihole
volumes:
- ${USERDIR}/pihole:/etc/pihole
# make sure to manually create this log file before first run
- ${USERDIR}/pihole/log/pihole.log:/var/log/pihole.log
# - /etc/dnsmasq.d:/etc/dnsmasq.d
# - ${USERDIR}/pihole/misc/dnsmasq.leases:/var/lib/misc/dnsmasq.leases
# - ${USERDIR}/pihole/dnsmasq.d/:/etc/dnsmasq.d/
restart: always
dns:
- 127.0.0.1
- 1.1.1.1
portainer:
container_name: portainer
restart: always
image: portainer/portainer:latest
volumes:
- ${USERDIR}/portainer:/data
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "9000:9000"
environment:
- TZ=${TZ}
ipam:
container_name: ipam
depends_on:
- mariadb
image: pierrecdn/phpipam:latest
volumes:
- ${USERDIR}/phpipam:/var/www/
environment:
- MYSQL_ENV_MYSQL_USER=${MYSQL_ROOT_USER}
- MYSQL_ENV_MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_ENV_MYSQL_HOST=mariadb
- MYSQL_ENV_MYSQL_DB=${PHPIPAM_DATABASE}
ports:
- "3280:80"
watchtower:
container_name: watchtower
hostname: watchtower
restart: always
image: v2tec/watchtower:latest
depends_on:
- "pihole"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --schedule "0 0 4 * * *" --cleanup
duplicati:
image: duplicati/duplicati:latest
container_name: duplicati
restart: always
network_mode: "bridge"
ports:
- "8200:8200"
environment:
- PUID=${PUID}
- PGID=${PGID}
volumes:
- ${USERDIR}/duplicati/config:/config
- ${USERDIR}/duplicati/data:/data/Duplicati
- ${BACKUP_DIR}/duplicatiBackups:/backups
- ${USERDIR}:/source
- /etc/localtime:/etc/localtime:ro
netdata:
image: titpetric/netdata:latest
container_name: netdata
restart: always
networks:
- traefik_proxy
ports:
- 19999:19999
volumes:
- ${USERDIR}/netdata/proc:/host/proc:ro
- ${USERDIR}/netdata/sys:/host/sys:ro
- ${USERDIR}/netdata/var/run/docker.sock:/var/run/docker.sock:ro
gitlab:
container_name: gitlab
restart: always
image: sameersbn/gitlab:12.9.5
ports:
- "10080:80"
- "10022:22"
environment:
- DEBUG=false
- DB_ADAPTER=postgresql
- DB_HOST=postgresql
- DB_PORT=5432
- DB_USER=${POSTGRES_USER}
- DB_PASS=${POSTGRES_PASSWORD}
- DB_NAME=${POSTGRES_DB}
- REDIS_HOST=redis
- REDIS_PORT=6379
- TZ={TZ}
- GITLAB_HOST=localhost
- GITLAB_PORT=10080
- GITLAB_SSH_PORT=10022
- GITLAB_SECRETS_DB_KEY_BASE=${GITLAB_SECRETS_DB_KEY_BASE}
- GITLAB_SECRETS_SECRET_KEY_BASE=${GITLAB_SECRETS_SECRET_KEY_BASE}
- GITLAB_SECRETS_OTP_KEY_BASE=${GITLAB_SECRETS_OTP_KEY_BASE}
- GITLAB_ROOT_PASSWORD=${GITLAB_ROOT_PASSWORD}
- GITLAB_ROOT_EMAIL=${GITLAB_ROOT_EMAIL}
- GITLAB_REGISTRY_ENABLED=true
- GITLAB_REGISTRY_HOST=http://${LOCAL_IP}
- GITLAB_REGISTRY_PORT=5000
- GITLAB_REGISTRY_API_URL=http://{LOCAL_IP}:5000
- GITLAB_REGISTRY_KEY_PATH=/certs/registry.key
volumes:
- ${USERDIR}/gitlab:/home/git/data
- /etc/localtime:/etc/localtime:ro
- ${USERDIR}/certs:/certs
networks:
- default
depends_on:
- redis
- postgresql
gitlab-runner:
container_name: gitlab-runner
image: gitlab/gitlab-runner:latest
environment:
- CI_SERVER_URL=http://${LOCAL_IP}:10800 # https://${GITLAB_HOSTNAME}/
- RUNNER_TOKEN=${GITLAB_RUNNER_ONE_TOKEN}
- RUNNER_DESCRIPTION=runner-1
- RUNNER_EXECUTOR=shell
volumes:
- ${USERDIR}/gitlab/runners/1:/etc/gitlab-runner
- /var/run/docker.sock:/var/run/docker.sock
restart: always
networks:
- default
links:
- gitlab
redis:
image: redis:latest
restart: always
container_name: redis
ports:
- "6379:6379"
environment:
- REDIS_PASSWORD=${REDIS_PASSWORD}
volumes:
- ${USERDIR}/redis/data:/var/lib/redis
- ${USERDIR}/redis/redis.conf:/usr/local/etc/redis/redis.conf
- /etc/localtime:/etc/localtime:ro
command:
- --loglevel warning
networks:
- default
postgresql:
image: postgres:latest
container_name: postgresql
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- DB_EXTENSION=pg_trgm
volumes:
- ${USERDIR}/postgres:/var/lib/postgresql/data
#- ${USERDIR}/postgres:/data/postgres
ports:
- "5432:5432"
networks:
- default
restart: unless-stopped
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin
restart: always
depends_on:
- postgresql
ports:
- "5050:80"
volumes:
# sudo chown -R 5050:5050 pgadmin, otherwise you get permissions errors
- ${USERDIR}/pgadmin:/var/lib/pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: ${POSTGRES_ADMIN_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${POSTGRES_ADMIN_PASSWORD}
paperless-webserver:
container_name: paperless-web
restart: always
image: thepaperlessproject/paperless:latest
ports:
- "8000:8000"
volumes:
- ${USERDIR}/paperless/data:/usr/src/paperless/data
- ${MEDIA_PATH}/Documents:/usr/src/paperless/media
- /etc/localtime:/etc/localtime:ro
# The reason the line is here is so that the webserver that doesn't do
# any text recognition and doesn't have to install unnecessary
# languages the user might have set in the env-file by overwriting the
# value with nothing.
environment:
- TZ=${TZ}
- PAPERLESS_OCR_LANGUAGES=
command: ["runserver", "--insecure", "0.0.0.0:8000"]
paperless-consumer:
container_name: paperless-consumer
restart: always
image: thepaperlessproject/paperless:latest
environment:
- TZ=${TZ}
volumes:
- ${USERDIR}/paperless/data:/usr/src/paperless/data
- ${MEDIA_PATH}/Documents:/usr/src/paperless/media
- /etc/localtime:/etc/localtime:ro
- ${MEDIA_PATH}/scannedFiles:/consume
- ${MEDIA_PATH}/Documents/export:/export
command: ["document_consumer"]
registry:
container_name: docker-registry
image: registry:2
ports:
- "5000:5000"
environment:
- REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=/data
- REGISTRY_REDIS_ADDR=${LOCAL_IP}:6379
- REGISTRY_REDIS_PASSWORD=${REDIS_PASSWORD}
- REGISTRY_AUTH_TOKEN_REALM=http://{$LOCAL_IP}:10800/jwt/auth
- REGISTRY_AUTH_TOKEN_SERVICE=${LOCAL_IP} #container_registry
- REGISTRY_AUTH_TOKEN_ISSUER=${LOCAL_IP} #gitlab-issuer
- REGISTRY_AUTH_TOKEN_ROOTCERTBUNDLE=/certs/registry.crt
- REGISTRY_STORAGE_DELETE_ENABLED=true
volumes:
- ${MEDIA_PATH}/docker-registry/data:/data
- ${USERDIR}/certs:/certs:ro
restart: always
links:
- portus
# need to figure out the secret key issue
portus:
container_name: portus
image: opensuse/portus:latest
ports:
- "3000:3000"
environment:
- PORTUS_CHECK_SSL_USAGE_ENABLED='false'
- RAILS_SERVE_STATIC_FILES='true'
- PORTUS_DB_HOST=${LOCAL_IP}
- PORTUS_DB_USERNAME=${PORTUS_DB_USER}
- PORTUS_DB_PASSWORD=${PORTUS_DB_PASSWORD}
- PORTUS_DB_DATABASE=${PORTUS_DB}
- PORTUS_SECRET_KEY_BASE=${PORTUS_SECRET_KEY_BASE}
- PORTUS_PASSWORD=${PORTUS_PASSWORD}
- PORTUS_KEY_PATH=/certificates/registry.key
volumes:
- ${USERDIR}/portus:/srv/Portus/public
- ${USERDIR}/certs:/certificates:ro
# thanks to a bug, it won't initialize without this
entrypoint:
- /bin/sh
- /init
links:
- mariadb