Add mariadb for nextcloud

This commit is contained in:
Joey Hafner 2023-01-26 13:54:48 -08:00
parent 00feca9ea0
commit 96b0cd8fe7
2 changed files with 21 additions and 1 deletions

View File

@ -13,6 +13,8 @@ services:
keep-file: "true"
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
@ -21,10 +23,23 @@ services:
#- 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
networks:
web:
external: true
external: true
nextcloud:

View File

@ -0,0 +1,5 @@
PUID=1000
PGID=1000
TZ=America/Los_Angeles
MYSQL_DATABASE=nextcloud
MYSQL_USER=ncuser