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

49 lines
1.4 KiB
YAML
Raw Normal View History

2024-02-15 02:09:59 -08:00
version: '3.9'
2022-11-02 09:00:07 -07:00
services:
nextcloud:
2024-07-16 14:25:20 -07:00
image: lscr.io/linuxserver/nextcloud@sha256:1b8f189afeb86e016cb43ea9e0a5e1d11f18b114479573e6098eae426b5807ca
2022-11-02 10:52:11 -07:00
container_name: nextcloud_nextcloud
env_file:
- path: ./nextcloud.env
required: true
2023-01-26 13:54:48 -08:00
depends_on:
- mariadb
2022-11-02 09:00:07 -07:00
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
2022-11-02 09:00:07 -07:00
networks:
- web
2023-01-26 13:54:48 -08:00
- nextcloud
2022-11-02 09:00:07 -07:00
volumes:
2022-11-02 10:52:11 -07:00
- $DOCKER_DATA/config:/config
- $DOCKER_DATA/data:/data
2022-11-02 09:00:07 -07:00
2023-01-26 13:54:48 -08:00
mariadb:
2024-07-16 14:25:20 -07:00
image: lscr.io/linuxserver/mariadb@sha256:4d13ae7319beff48f927cdf580b302aac6bff93127e094c24573bb9d42bf0638
2023-01-26 13:54:48 -08:00
container_name: nextcloud_mariadb
networks:
- nextcloud
env_file:
- path: ./mariadb.env
required: true
- path: ./mariadb_secrets
required: false
2023-01-26 13:54:48 -08:00
volumes:
- $DOCKER_DATA/mariadb:/config
redis:
2024-07-16 14:25:20 -07:00
image: redis@sha256:961dda256baa7a35297d34cca06bc2bce8397b0ef8b68d8064c30e338afc5a7d
container_name: nextcloud_redis
networks:
- nextcloud
volumes:
- $DOCKER_DATA/redis:/data
2023-11-22 16:44:15 -08:00
2022-11-02 09:00:07 -07:00
networks:
web:
2023-01-26 13:54:48 -08:00
external: true
2023-06-13 12:20:22 -07:00
nextcloud: