Fixed nextcloud compose volumes and networks
This commit is contained in:
parent
f40b2319ae
commit
d1ea672bd7
|
@ -1,8 +1,5 @@
|
|||
version: '2'
|
||||
|
||||
volumes:
|
||||
app:
|
||||
|
||||
services:
|
||||
app:
|
||||
container_name: nextcloud
|
||||
|
@ -12,25 +9,26 @@ services:
|
|||
- 8080:80
|
||||
volumes:
|
||||
- app:/var/www/html
|
||||
- /mnt/data/nextcloud/files:/var/www/html/data
|
||||
- /mnt/data/nextcloud/config:/var/www/html/config
|
||||
- files:/var/www/html/data
|
||||
- config:/var/www/html/config
|
||||
environment:
|
||||
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
||||
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
||||
- MYSQL_USER=${MYSQL_USER}
|
||||
- MYSQL_HOST=${MYSQL_HOST}
|
||||
networks:
|
||||
- mariadb_default
|
||||
- proxy
|
||||
#networks:
|
||||
# - mariadb_default
|
||||
# - proxy
|
||||
|
||||
networks:
|
||||
mariadb_default:
|
||||
external: true
|
||||
proxy:
|
||||
#networks:
|
||||
#mariadb_default:
|
||||
# external: true
|
||||
#proxy:
|
||||
# name: proxy
|
||||
external: true
|
||||
# external: true
|
||||
|
||||
volumes:
|
||||
app:
|
||||
files:
|
||||
driver_opts:
|
||||
type: "nfs"
|
||||
|
|
Loading…
Reference in New Issue