Add mariadb for nextcloud
This commit is contained in:
parent
81e1b419b6
commit
fb93a15496
@ -13,6 +13,8 @@ services:
|
|||||||
keep-file: "true"
|
keep-file: "true"
|
||||||
env_file:
|
env_file:
|
||||||
- nextcloud.env
|
- nextcloud.env
|
||||||
|
depends_on:
|
||||||
|
- mariadb
|
||||||
labels:
|
labels:
|
||||||
- traefik.http.routers.nextcloud.rule=Host(`nextcloud.jafner.net`)
|
- traefik.http.routers.nextcloud.rule=Host(`nextcloud.jafner.net`)
|
||||||
- traefik.http.routers.nextcloud.tls.certresolver=lets-encrypt
|
- traefik.http.routers.nextcloud.tls.certresolver=lets-encrypt
|
||||||
@ -21,10 +23,23 @@ services:
|
|||||||
#- traefik.http.services.nextcloud.loadbalancer.server.port=443
|
#- traefik.http.services.nextcloud.loadbalancer.server.port=443
|
||||||
networks:
|
networks:
|
||||||
- web
|
- web
|
||||||
|
- nextcloud
|
||||||
volumes:
|
volumes:
|
||||||
- $DOCKER_DATA/config:/config
|
- $DOCKER_DATA/config:/config
|
||||||
- $DOCKER_DATA/data:/data
|
- $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:
|
networks:
|
||||||
web:
|
web:
|
||||||
external: true
|
external: true
|
||||||
|
nextcloud:
|
5
server/config/nextcloud/mariadb.env
Normal file
5
server/config/nextcloud/mariadb.env
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
PUID=1000
|
||||||
|
PGID=1000
|
||||||
|
TZ=America/Los_Angeles
|
||||||
|
MYSQL_DATABASE=nextcloud
|
||||||
|
MYSQL_USER=ncuser
|
Loading…
Reference in New Issue
Block a user