feat: Add Nextcloud service to homelab setup

This commit is contained in:
2025-11-15 23:36:26 +02:00
parent 7ad966014e
commit 26f0d7f5f4
4 changed files with 48 additions and 6 deletions

View File

@@ -39,3 +39,26 @@
reverse_proxy 2fauth:8000
}
# ===========================
# Nextcloud
# ===========================
{$STORAGE_DOMAIN} {
log {
level INFO
output file {$LOG_FILE} {
roll_size 10MB
roll_keep 10
}
}
tls {
dns duckdns {$DUCKDNS_TOKEN}
}
encode zstd gzip
reverse_proxy nextcloud:80
}

View File

@@ -35,6 +35,21 @@ services:
networks:
- default
# ==========================
# Nextcloud (Personal cloud / NAS)
# ==========================
nextcloud:
image: nextcloud:latest
container_name: nextcloud
restart: always
volumes:
- ./services/nextcloud:/var/www/html
environment:
- NEXTCLOUD_ADMIN_USER=admin # Change to yours
- NEXTCLOUD_ADMIN_PASSWORD=changeme # Change to a strong password
networks:
- default
# ==========================
# Caddy (Reverse proxy)
# ==========================
@@ -55,6 +70,7 @@ services:
# For Caddy: hostnames only, no https://
VAULT_DOMAIN: "vault.example.com" # Change to yours
AUTH_DOMAIN: "auth.example.com" # Change to yours
STORAGE_DOMAIN: "storage.example.com" # Change to yours
EMAIL: "admin@example.com" # Change to yours
DUCKDNS_TOKEN: "TOKEN" # Change to yours
LOG_FILE: "/data/access.log"