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,4 +1,6 @@
|
|||
[services]
|
||||
[volumes]
|
||||
config = {}
|
||||
dnsmasq = {}
|
||||
|
||||
[services.pihole]
|
||||
container_name = "pihole"
|
||||
|
@ -6,8 +8,8 @@ image = "pihole/pihole"
|
|||
ports = ["53:53/tcp", "53:53/udp", "67:67/udp", "8069:80/tcp"]
|
||||
networks = ["proxy"]
|
||||
volumes = [
|
||||
"/docker/pihole/pihole:/etc/pihole/",
|
||||
"/docker/pihole/dnsmasq:/etc/dnsmasq.d/",
|
||||
"config:/etc/pihole/",
|
||||
"dnsmasq:/etc/dnsmasq.d/",
|
||||
]
|
||||
dns = ["127.0.0.1", "1.1.1.1"]
|
||||
cap_add = ["NET_ADMIN"]
|
||||
|
@ -17,7 +19,5 @@ restart = "unless-stopped"
|
|||
TZ = "Europe/Helsinki"
|
||||
WEBPASSWORD = "${WEBPASSWORD}"
|
||||
|
||||
[networks]
|
||||
|
||||
[networks.proxy]
|
||||
external = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue