-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloud.yml
More file actions
248 lines (232 loc) · 7.17 KB
/
Copy pathcloud.yml
File metadata and controls
248 lines (232 loc) · 7.17 KB
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
# cloud — files, secrets, git, dashboard, status.
# Routes for these live in traefik/dynamic.yml.template (LAN-only by default).
x-logging: &logging
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
networks:
proxy:
name: proxy
internal:
name: baseplate_internal
internal: true
volumes:
nextcloud_data:
nextcloud_db:
vaultwarden_data:
gitea_data:
homarr_config:
uptime_kuma_data:
paperless_data:
paperless_media:
paperless_db:
services:
nextcloud:
image: nextcloud:apache
container_name: nextcloud
restart: unless-stopped
security_opt: ["no-new-privileges:true"]
<<: *logging
profiles: ["nextcloud"]
networks: [proxy, internal]
depends_on:
nextcloud_db:
condition: service_healthy
nextcloud_redis:
condition: service_healthy
cpus: 2.0
volumes:
- nextcloud_data:/var/www/html
environment:
MYSQL_HOST: nextcloud_db
MYSQL_DATABASE: nextcloud
MYSQL_USER: nextcloud
MYSQL_PASSWORD: "${NEXTCLOUD_DB_PASSWORD}"
REDIS_HOST: nextcloud_redis
OVERWRITEPROTOCOL: https
OVERWRITECLIURL: "https://cloud.${DOMAIN}"
TRUSTED_PROXIES: "172.16.0.0/12 10.0.0.0/8 192.168.0.0/16"
APACHE_BODY_LIMIT: "0" # no upload size cap at the Apache layer
# Background jobs. Nextcloud needs a cron runner; without it the instance falls
# back to less reliable AJAX cron. Shares the app volume with the web container.
nextcloud_cron:
image: nextcloud:apache
container_name: nextcloud_cron
restart: unless-stopped
security_opt: ["no-new-privileges:true"]
<<: *logging
profiles: ["nextcloud"]
networks: [internal]
entrypoint: /cron.sh
depends_on:
nextcloud_db:
condition: service_healthy
nextcloud_redis:
condition: service_healthy
volumes:
- nextcloud_data:/var/www/html
nextcloud_db:
# Pinned to the 10.11 LTS (supported to Feb 2028) on purpose. 11.4 clears no
# CVEs over 10.11 and a major bump is one-way: it needs mariadb-upgrade
# against the Nextcloud database with no supported downgrade.
image: mariadb:10.11
container_name: nextcloud_db
restart: unless-stopped
security_opt: ["no-new-privileges:true"]
<<: *logging
stop_grace_period: 60s
profiles: ["nextcloud"]
networks: [internal]
volumes:
- nextcloud_db:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: "${NEXTCLOUD_DB_ROOT_PASSWORD}"
MYSQL_DATABASE: nextcloud
MYSQL_USER: nextcloud
MYSQL_PASSWORD: "${NEXTCLOUD_DB_PASSWORD}"
# Lets dependents wait on `service_healthy` so Nextcloud never starts against
# an uninitialised database.
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 10s
timeout: 5s
retries: 3
start_period: 30s
nextcloud_redis:
image: redis:7-alpine
container_name: nextcloud_redis
restart: unless-stopped
security_opt: ["no-new-privileges:true"]
<<: *logging
profiles: ["nextcloud"]
networks: [internal]
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 3s
retries: 5
start_period: 10s
vaultwarden:
image: vaultwarden/server:latest
container_name: vaultwarden
restart: unless-stopped
security_opt: ["no-new-privileges:true"]
<<: *logging
profiles: ["vaultwarden"]
networks: [proxy]
volumes:
- vaultwarden_data:/data
environment:
DOMAIN: "https://vault.${DOMAIN}"
# Argon2-hash the admin token (see README). Empty disables the admin page.
ADMIN_TOKEN: "${VAULTWARDEN_ADMIN_TOKEN}"
gitea:
image: gitea/gitea:1
container_name: gitea
restart: unless-stopped
security_opt: ["no-new-privileges:true"]
<<: *logging
profiles: ["gitea"]
networks: [proxy, internal]
volumes:
- gitea_data:/data
ports:
# Raw TCP: Traefik never sees this, so the lan-only middleware does not
# apply. Firewall the port at the host if the box is internet-facing.
- "2222:22" # git over SSH
environment:
TZ: "${TZ:-UTC}"
USER_UID: "${PUID:-1000}"
USER_GID: "${PGID:-1000}"
GITEA__server__ROOT_URL: "https://git.${DOMAIN}/"
GITEA__server__DOMAIN: "git.${DOMAIN}"
GITEA__server__SSH_DOMAIN: "git.${DOMAIN}"
GITEA__server__SSH_PORT: "2222"
homarr:
image: ghcr.io/homarr-labs/homarr:latest
container_name: homarr
restart: unless-stopped
security_opt: ["no-new-privileges:true"]
<<: *logging
profiles: ["homarr"]
networks: [proxy]
volumes:
- homarr_config:/appdata
environment:
SECRET_ENCRYPTION_KEY: "${HOMARR_SECRET_KEY}"
uptime-kuma:
# slim, not plain :2 — the full image bundles Chromium and carries 109
# critical CVEs against its Debian base, versus 6 here. Trade-off: no
# "real browser" monitor type. Apprise notifications still work.
image: louislam/uptime-kuma:2-slim
container_name: uptime-kuma
restart: unless-stopped
security_opt: ["no-new-privileges:true"]
<<: *logging
profiles: ["kuma"]
networks: [proxy]
volumes:
- uptime_kuma_data:/app/data
# ── Paperless-ngx (opt-in) ──────────────────────────────────────────────────
paperless_db:
image: postgres:17
container_name: paperless_db
restart: unless-stopped
security_opt: ["no-new-privileges:true"]
<<: *logging
stop_grace_period: 60s
profiles: ["paperless"]
networks: [internal]
volumes:
- paperless_db:/var/lib/postgresql/data
environment:
POSTGRES_DB: paperless
POSTGRES_USER: paperless
POSTGRES_PASSWORD: "${PAPERLESS_DB_PASSWORD}"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U paperless -d paperless"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
paperless_redis:
image: redis:7-alpine
container_name: paperless_redis
restart: unless-stopped
security_opt: ["no-new-privileges:true"]
<<: *logging
profiles: ["paperless"]
networks: [internal]
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 3s
retries: 5
start_period: 10s
paperless:
image: ghcr.io/paperless-ngx/paperless-ngx:latest
container_name: paperless
restart: unless-stopped
security_opt: ["no-new-privileges:true"]
<<: *logging
profiles: ["paperless"]
networks: [proxy, internal]
depends_on:
paperless_db:
condition: service_healthy
paperless_redis:
condition: service_healthy
volumes:
- paperless_data:/usr/src/paperless/data
- paperless_media:/usr/src/paperless/media
environment:
PAPERLESS_URL: "https://paperless.${DOMAIN}"
PAPERLESS_SECRET_KEY: "${PAPERLESS_SECRET_KEY}"
PAPERLESS_REDIS: "redis://paperless_redis:6379"
PAPERLESS_DBHOST: paperless_db
PAPERLESS_DBUSER: paperless
PAPERLESS_DBPASS: "${PAPERLESS_DB_PASSWORD}"
PAPERLESS_ADMIN_USER: "${PAPERLESS_ADMIN_USER:-admin}"
PAPERLESS_ADMIN_PASSWORD: "${PAPERLESS_ADMIN_PASSWORD}"