Docker: migrate from bind mounts to named volumes

This commit is contained in:
Marko Korhonen 2024-02-24 00:39:27 +02:00
parent 8b39e5912b
commit 37366f5652
18 changed files with 143 additions and 62 deletions

View file

@ -1,11 +1,14 @@
[volumes]
data = {}
[services.forgejo]
image = "git.korhonen.cc/functionalhacker/forgejo-asciidoc"
container_name = "forgejo"
environment = ["TZ=Europe/Helsinki", "USER_UID=1000", "USER_GID=1000"]
environment = ["TZ=Europe/Helsinki"]
restart = "unless-stopped"
networks = ["postgres", "proxy"]
ports = ["22:22"]
volumes = ["/docker/forgejo:/data", "/etc/localtime:/etc/localtime:ro"]
volumes = ["data:/data", "/etc/localtime:/etc/localtime:ro"]
[networks.postgres]
external = true