Docker: migrate from bind mounts to named volumes
This commit is contained in:
parent
8b39e5912b
commit
37366f5652
18 changed files with 143 additions and 62 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue