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,10 +1,11 @@
[volumes]
config = {}
data = {}
[services.headscale]
image = "headscale/headscale"
image = "headscale/headscale:0"
container_name = "headscale"
volumes = [
"/docker/headscale/config:/etc/headscale/",
"/docker/headscale/data:/var/lib/headscale",
]
volumes = ["config:/etc/headscale", "data:/var/lib/headscale"]
ports = ["3478:3478/udp"]
command = "headscale serve"
restart = "unless-stopped"