31 lines
744 B
YAML
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
|