Jafner.net/homelab/server/config/nextcloud/docker-compose.yml

31 lines
786 B
YAML

version: '3'
services:
nextcloud:
image: lscr.io/linuxserver/nextcloud:latest
container_name: nextcloud_nextcloud
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
loki-batch-size: "50"
loki-retries: "1"
loki-timeout: "2s"
keep-file: "true"
env_file:
- nextcloud.env
labels:
- traefik.http.routers.nextcloud.rule=Host(`nextcloud.jafner.net`)
- traefik.http.routers.nextcloud.tls.certresolver=lets-encrypt
- traefik.http.services.nextcloud.loadbalancer.server.port=443
networks:
- web
volumes:
- $DOCKER_DATA/config:/config
- $DOCKER_DATA/data:/data
networks:
web:
external: true
volumes:
nextcloud_aio_mastercontainer: