updated nextcloud

This commit is contained in:
2024-08-18 16:27:25 -07:00
parent e43b301711
commit ca4f025cc8
5 changed files with 46 additions and 58 deletions
+9 -47
View File
@@ -1,51 +1,13 @@
################################################################################
# Nextcloud
#
# Version 1
#
# useful commands:
# php occ trashbin:cleanup --all-users
################################################################################
version: '3.3'
volumes:
nextcloud-db:
nextcloud:
networks:
admin_web:
external:
name: admin_web
version: '3.8'
services:
nextcloud-db:
image: mariadb:${DB_V}
restart: always
volumes:
- nextcloud-db:/var/lib/mysql
networks:
- admin_web
environment:
MYSQL_ROOT_PASSWORD: ${NEXTCLOUD_MYSQL_ROOT_PASSWORD}
MYSQL_USER: nextcloud
MYSQL_PASSWORD: ${NEXTCLOUD_MYSQL_PASSWORD}
MYSQL_DATABASE: db_nextcloud
nextcloud:
image: nextcloud:${NEXTCLOUD_V}
stdin_open: true
tty: true
networks:
- admin_web
restart: always
links:
- nextcloud-db
image: ${NEXTCLOUD_IMAGE:-nextcloud:latest}
restart: unless-stopped
environment:
- MYSQL_PASSWORD=${NEXTCLOUD_DB_PASSWORD:-password}
- MYSQL_DATABASE=${NEXTCLOUD_DB:-nextcloud}
- MYSQL_USER=${NEXTCLOUD_DB_USER:-nextcloud}
- MYSQL_HOST=${NEXTCLOUD_DB_HOST:-nextcloud-db}
volumes:
- nextcloud:/var/www/html
labels:
- "traefik.enable=true"
- "traefik.http.routers.${PREFIX}_nextcloud.rule=Host(`${NEXTCLOUD_DOMAIN_NAME}`)"
- "traefik.http.routers.${PREFIX}_nextcloud.entrypoints=websecure"
- "traefik.http.routers.${PREFIX}_nextcloud.tls.certresolver=letsencrypt"
- "traefik.http.services.${PREFIX}_nextcloud.loadbalancer.server.port=80"
- ${VOL_PATH:-./data}/nextcloud:/var/www/html