Deploy to valhalla / deploy (push) Has been cancelled
Add Recyclarr to the media stack, pin database/object-store/Caddy/Vault images with Watchtower disabled, expose JDownloader at jd.ginnoir.com, and restrict minio/homarr/docs to internal_only. Mark TB-002–004 and TB-033 complete; bundle batch-3 OIDC env for FreshRSS, ownCloud, and Reactive Resume.
83 lines
2.2 KiB
YAML
83 lines
2.2 KiB
YAML
# owncloud stack — ownCloud server + its dedicated MariaDB and Redis.
|
|
# DB/cache stay co-located with the app so depends_on health-gating keeps working.
|
|
# All data is bind-mounted already (/config/owncloud, /config/mysql, /config/redis).
|
|
# Only the owncloud server joins `edge`; mariadb/redis stay private.
|
|
|
|
services:
|
|
owncloud:
|
|
image: owncloud/server:latest
|
|
container_name: owncloud_server
|
|
restart: unless-stopped
|
|
networks: [owncloud, edge]
|
|
ports:
|
|
- "8080:8080"
|
|
depends_on:
|
|
mariadb:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_healthy
|
|
env_file:
|
|
- stack.env
|
|
environment:
|
|
- OWNCLOUD_DB_TYPE=mysql
|
|
- OWNCLOUD_DB_NAME=owncloud
|
|
- OWNCLOUD_DB_HOST=mariadb
|
|
- OWNCLOUD_MYSQL_UTF8MB4=true
|
|
- OWNCLOUD_REDIS_ENABLED=true
|
|
- OWNCLOUD_REDIS_HOST=redis
|
|
healthcheck:
|
|
test: ["CMD", "/usr/bin/healthcheck"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 5
|
|
volumes:
|
|
- /config/owncloud:/mnt/data
|
|
- /storage1/Books:/mnt/books
|
|
- /mnt/dropbox:/mnt/data/files/dropbox
|
|
- /storage1/ROMs:/mnt/roms
|
|
|
|
mariadb:
|
|
image: mariadb:12.3
|
|
container_name: owncloud_mariadb
|
|
restart: unless-stopped
|
|
labels:
|
|
- "com.centurylabs.watchtower.enable=false"
|
|
networks: [owncloud]
|
|
env_file:
|
|
- stack.env
|
|
environment:
|
|
- MYSQL_DATABASE=owncloud
|
|
command: ["--max-allowed-packet=128M", "--innodb-log-file-size=64M"]
|
|
healthcheck:
|
|
# $$ defers expansion to container runtime (env_file supplies the value)
|
|
test: ["CMD-SHELL", "mariadb-admin ping -u root --password=\"$$MYSQL_ROOT_PASSWORD\""]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
volumes:
|
|
- /config/mysql:/var/lib/mysql
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
container_name: owncloud_redis
|
|
restart: unless-stopped
|
|
labels:
|
|
- "com.centurylabs.watchtower.enable=false"
|
|
networks: [owncloud]
|
|
command: ["--databases", "1"]
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
volumes:
|
|
- /config/redis:/data
|
|
|
|
networks:
|
|
owncloud:
|
|
name: owncloud
|
|
driver: bridge
|
|
edge:
|
|
name: edge
|
|
external: true
|