Fixed nextcloud compose volumes and networks

This commit is contained in:
Thord Johansson 2024-03-26 01:18:39 +01:00
parent f40b2319ae
commit d1ea672bd7

View File

@ -1,8 +1,5 @@
version: '2' version: '2'
volumes:
app:
services: services:
app: app:
container_name: nextcloud container_name: nextcloud
@ -12,25 +9,26 @@ services:
- 8080:80 - 8080:80
volumes: volumes:
- app:/var/www/html - app:/var/www/html
- /mnt/data/nextcloud/files:/var/www/html/data - files:/var/www/html/data
- /mnt/data/nextcloud/config:/var/www/html/config - config:/var/www/html/config
environment: environment:
- MYSQL_PASSWORD=${MYSQL_PASSWORD} - MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE} - MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER} - MYSQL_USER=${MYSQL_USER}
- MYSQL_HOST=${MYSQL_HOST} - MYSQL_HOST=${MYSQL_HOST}
networks: #networks:
- mariadb_default # - mariadb_default
- proxy # - proxy
networks: #networks:
mariadb_default: #mariadb_default:
external: true # external: true
proxy: #proxy:
# name: proxy # name: proxy
external: true # external: true
volumes: volumes:
app:
files: files:
driver_opts: driver_opts:
type: "nfs" type: "nfs"