Jafner.net/homelab/stacks/nextcloud/docker-compose.yml

52 lines
1.3 KiB
YAML
Raw Normal View History

2022-11-02 09:00:07 -07:00
services:
nextcloud:
image: lscr.io/linuxserver/nextcloud:latest
2022-11-02 10:52:11 -07:00
container_name: nextcloud_nextcloud
2024-10-08 11:52:56 -07:00
environment:
PUID: "1000"
PGID: "1000"
TZ: "America/Los_Angeles"
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:
image: lscr.io/linuxserver/mariadb:latest
2023-01-26 13:54:48 -08:00
container_name: nextcloud_mariadb
networks:
- nextcloud
2024-10-08 11:52:56 -07:00
environment:
PUID: "1000"
PGID: "1000"
TZ: "America/Los_Angeles"
MYSQL_DATABASE: "nextcloud"
MYSQL_USER: "ncuser"
2023-01-26 13:54:48 -08:00
env_file:
2024-10-08 11:52:56 -07:00
- path: ./mariadb.secrets
required: true
2023-01-26 13:54:48 -08:00
volumes:
- $DOCKER_DATA/mariadb:/config
redis:
image: redis:latest
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
2024-10-08 11:52:56 -07:00
nextcloud: