Files
2025-07-30 10:54:12 +02:00

31 lines
744 B
YAML

version: '3.9'
services:
nextcloud:
image: docker.io/nextcloud:stable
restart: unless-stopped
volumes:
- /srv/nextcloud:/var/www/html
- /etc/localtime:/etc/localtime:ro
env_file: .env
networks:
- caddy
- postgres
- redis
- ldap
labels:
traefik.enable: 'true'
traefik.http.routers.nextcloud.rule: 'Host(`cloud.marcpartensky.com`)'
traefik.http.routers.nextcloud.entrypoints: web
healthcheck:
test: curl -sSf 'http://localhost/status.php' | grep '"installed":true' | grep
'"maintenance":false' | grep '"needsDbUpgrade":false' || exit 1
networks:
ldap:
external: true
caddy:
external: true
postgres:
external: true
redis:
external: true