homelab/fighter/config/nextcloud/docker-compose.yml

62 lines
1.7 KiB
YAML

version: '3'
services:
nextcloud:
image: lscr.io/linuxserver/nextcloud:latest
container_name: nextcloud_nextcloud
env_file:
- nextcloud.env
depends_on:
- mariadb
labels:
- traefik.http.routers.nextcloud.rule=Host(`nextcloud.jafner.net`)
- traefik.http.routers.nextcloud.tls.certresolver=lets-encrypt
- traefik.http.routers.nextcloud.middlewares=nextcloud-headers@file,nextcloud-redirect@file
#- traefik.http.services.nextcloud.loadbalancer.server.scheme=https
#- traefik.http.services.nextcloud.loadbalancer.server.port=443
networks:
- web
- nextcloud
volumes:
- $DOCKER_DATA/config:/config
- $DOCKER_DATA/data:/data
mariadb:
image: lscr.io/linuxserver/mariadb
container_name: nextcloud_mariadb
networks:
- nextcloud
env_file:
- mariadb.env
- mariadb_secrets.env
volumes:
- $DOCKER_DATA/mariadb:/config
redis:
image: redis
container_name: nextcloud_redis
networks:
- nextcloud
volumes:
- $DOCKER_DATA/redis:/data
nextcloud-test:
image: lscr.io/linuxserver/nextcloud:latest
container_name: nextcloud_nextcloud-test
env_file:
- nextcloud.env
labels:
- traefik.http.routers.nextcloud-test.rule=Host(`test.jafner.net`)
- traefik.http.routers.nextcloud-test.tls.certresolver=lets-encrypt
#- traefik.http.routers.nextcloud-test.middlewares=nextcloud-headers@file,nextcloud-redirect@file
networks:
- web
- nextcloud
volumes:
- /mnt/iscsi/appdata/nextcloud/config:/config
- /mnt/iscsi/appdata/nextcloud/data:/data
networks:
web:
external: true
nextcloud: