Docker: migrate from bind mounts to named volumes
This commit is contained in:
parent
ee97d8a590
commit
944de98b4a
18 changed files with 143 additions and 62 deletions
|
@ -1,12 +1,17 @@
|
|||
[volumes.nextcloud_config]
|
||||
external = true
|
||||
|
||||
[volumes.nextcloud_data]
|
||||
external = true
|
||||
|
||||
[services.nextcloud]
|
||||
image = "nextcloud:fpm-alpine"
|
||||
container_name = "nextcloud"
|
||||
restart = "unless-stopped"
|
||||
user = "82:82"
|
||||
networks = ["nextcloud", "postgres", "proxy"]
|
||||
volumes = [
|
||||
"/docker/nextcloud:/var/www/html:z",
|
||||
"/mnt/Storage/Nextcloud:/var/www/html/data",
|
||||
"nextcloud_config:/var/www/html",
|
||||
"nextcloud_data:/var/www/html/data",
|
||||
"/etc/localtime:/etc/localtime:ro",
|
||||
]
|
||||
environment = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue