Docker: migrate from bind mounts to named volumes

This commit is contained in:
Marko Korhonen 2024-02-24 00:39:27 +02:00
parent ee97d8a590
commit 944de98b4a
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890
18 changed files with 143 additions and 62 deletions

View file

@ -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 = [