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,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue