39374d5576
The ONE engine move in this series, and it is deliberate. Walked through the product's own guarded Update on scratch guest 9202 during the update night: 217.4 s end to end, seed read back through nextcloud's own front door before AND after, healthy after. Permitted since R-469 (Slice 4 shipped): MARIADB_AUTO_UPGRADE=1 is already in this template and converts the datadir. check-engine-major.py was run against this exact commit and ALLOWS it by name, rather than being assumed to. catalog_since -> 2026-09-22 (R-452). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
133 lines
4.5 KiB
YAML
133 lines
4.5 KiB
YAML
# Nextcloud - Saját felhő tárhely - Google Drive/Dropbox alternatíva
|
|
# Domain: ${SUBDOMAIN}.${DOMAIN}
|
|
# Database: mariadb
|
|
# RAM: ~256M (mem_limit: 1024M) | Pi-compatible: No
|
|
#
|
|
# Environment variables:
|
|
# DOMAIN - Your domain (e.g., demo-felhom.eu)
|
|
# DB_PASSWORD - Adatbázis jelszó (auto-generated)
|
|
# MYSQL_ROOT_PASSWORD- MariaDB root jelszó (auto-generated)
|
|
# NEXTCLOUD_ADMIN_USER- Admin felhasználónév
|
|
# NEXTCLOUD_ADMIN_PASSWORD- Admin jelszó (auto-generated)
|
|
# HDD_PATH - Adattárolási útvonal
|
|
|
|
services:
|
|
nextcloud:
|
|
image: nextcloud:34.0.1-apache
|
|
container_name: nextcloud
|
|
restart: unless-stopped
|
|
depends_on:
|
|
nextcloud-db:
|
|
condition: service_healthy
|
|
nextcloud-redis:
|
|
condition: service_healthy
|
|
environment:
|
|
- TZ=Europe/Budapest
|
|
- MYSQL_DATABASE=nextcloud
|
|
- MYSQL_USER=nextcloud
|
|
- MYSQL_PASSWORD=${DB_PASSWORD}
|
|
- MYSQL_HOST=nextcloud-db
|
|
- NEXTCLOUD_ADMIN_USER=${NEXTCLOUD_ADMIN_USER:-admin}
|
|
- NEXTCLOUD_ADMIN_PASSWORD=${NEXTCLOUD_ADMIN_PASSWORD}
|
|
- NEXTCLOUD_TRUSTED_DOMAINS=${SUBDOMAIN}.${DOMAIN} nextcloud
|
|
- OVERWRITEPROTOCOL=https
|
|
- OVERWRITEHOST=${SUBDOMAIN}.${DOMAIN}
|
|
- REDIS_HOST=nextcloud-redis
|
|
# App-email (managed relay). Injected by the controller only when app-email is on (global + per-app);
|
|
# empty SMTP_HOST keeps Nextcloud mail disabled. Nextcloud uses the plaintext :2526 listener
|
|
# (tls_mode=plaintext, SMTP_SECURE empty = no TLS) — it can't skip the self-signed STARTTLS cert.
|
|
# From is split: MAIL_FROM_ADDRESS=nextcloud + MAIL_DOMAIN=felhom.eu. See .felhom.yml smtp_mapping.
|
|
- SMTP_HOST=${SMTP_HOST:-}
|
|
- SMTP_PORT=${SMTP_PORT:-25}
|
|
- SMTP_SECURE=${SMTP_SECURE:-}
|
|
- MAIL_FROM_ADDRESS=${MAIL_FROM_ADDRESS:-}
|
|
- MAIL_DOMAIN=${MAIL_DOMAIN:-}
|
|
volumes:
|
|
- nextcloud_html:/var/www/html
|
|
- ${HDD_PATH}/appdata/nextcloud:/var/www/html/data
|
|
networks:
|
|
- traefik-public
|
|
- nextcloud-internal
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 1024M
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://127.0.0.1:80/status.php"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 30s
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.nextcloud.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)"
|
|
- "traefik.http.routers.nextcloud.entrypoints=websecure"
|
|
- "traefik.http.routers.nextcloud.tls=true"
|
|
- "traefik.http.routers.nextcloud.tls.certresolver=letsencrypt"
|
|
- "traefik.http.services.nextcloud.loadbalancer.server.port=80"
|
|
- "traefik.http.middlewares.nextcloud-redirect.redirectregex.regex=/.well-known/(card|cal)dav"
|
|
- "traefik.http.middlewares.nextcloud-redirect.redirectregex.replacement=/remote.php/dav/"
|
|
- "traefik.http.routers.nextcloud.middlewares=nextcloud-redirect"
|
|
|
|
nextcloud-db:
|
|
image: mariadb:12.3
|
|
container_name: nextcloud-db
|
|
restart: unless-stopped
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
|
- MYSQL_DATABASE=nextcloud
|
|
- MYSQL_USER=nextcloud
|
|
- MYSQL_PASSWORD=${DB_PASSWORD}
|
|
- TZ=Europe/Budapest
|
|
# MARIADB_AUTO_UPGRADE: on a MAJOR engine move the engine converts its own datadir (~7 s on a
|
|
# small DB, backs its system tables up first). Operator ruling 2026-09-13 on
|
|
# felhom.eu/documentation/audits/SPIKE-r459-mariadb-upgrade-2026-09-06.md. Inert until a
|
|
# major moves — and none may, until Slice 4 (R-448) ships: see CLAUDE.md, engine-major rule.
|
|
- MARIADB_AUTO_UPGRADE=1
|
|
volumes:
|
|
- nextcloud_db_data:/var/lib/mysql
|
|
networks:
|
|
- nextcloud-internal
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 512M
|
|
healthcheck:
|
|
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 20s
|
|
|
|
nextcloud-redis:
|
|
image: redis:7-alpine
|
|
container_name: nextcloud-redis
|
|
restart: unless-stopped
|
|
command: redis-server --appendonly yes
|
|
environment:
|
|
- TZ=Europe/Budapest
|
|
volumes:
|
|
- nextcloud_redis_data:/data
|
|
networks:
|
|
- nextcloud-internal
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 128M
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 20s
|
|
|
|
volumes:
|
|
nextcloud_db_data:
|
|
nextcloud_html:
|
|
nextcloud_redis_data:
|
|
|
|
networks:
|
|
traefik-public:
|
|
external: true
|
|
nextcloud-internal:
|