2022-11-02 09:00:07 -07:00
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
nextcloud:
|
2022-11-02 10:52:11 -07:00
|
|
|
image: lscr.io/linuxserver/nextcloud:latest
|
|
|
|
container_name: nextcloud_nextcloud
|
|
|
|
env_file:
|
|
|
|
- nextcloud.env
|
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
|
2022-11-21 14:58:33 -08:00
|
|
|
- traefik.http.routers.nextcloud.middlewares=nextcloud-headers@file,nextcloud-redirect@file
|
2022-11-02 11:05:09 -07:00
|
|
|
#- 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
|
|
|
|
container_name: nextcloud_mariadb
|
|
|
|
networks:
|
|
|
|
- nextcloud
|
|
|
|
env_file:
|
|
|
|
- mariadb.env
|
|
|
|
- mariadb_secrets.env
|
|
|
|
volumes:
|
|
|
|
- $DOCKER_DATA/mariadb:/config
|
|
|
|
|
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:
|