homelab/fighter/config/nextcloud/docker-compose.yml
Joey Hafner 1109cfd9e6
All checks were successful
Deploy to Fighter / Deploy (push) Successful in 17s
Deploy to Druid / Deploy (push) Successful in 18s
Deploy to Fighter / Notify (push) Successful in 2s
Deploy to Druid / Notify (push) Successful in 9s
Update all compose files to 3.9 spec
2024-02-15 02:09:59 -08:00

49 lines
1.2 KiB
YAML

version: '3.9'
services:
nextcloud:
image: lscr.io/linuxserver/nextcloud:latest
container_name: nextcloud_nextcloud
env_file:
- path: ./nextcloud.env
required: true
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:
- path: ./mariadb.env
required: true
- path: ./mariadb_secrets
required: false
volumes:
- $DOCKER_DATA/mariadb:/config
redis:
image: redis
container_name: nextcloud_redis
networks:
- nextcloud
volumes:
- $DOCKER_DATA/redis:/data
networks:
web:
external: true
nextcloud: