feat: Adds host mount.

This commit is contained in:
2025-04-10 09:44:29 -04:00
parent a1f907229d
commit c2cb5c4eb6
2 changed files with 4 additions and 21 deletions

View File

@@ -5,8 +5,8 @@ services:
image: ghcr.io/ajnart/homarr:latest
restart: unless-stopped
volumes:
- ./config:/app/data/configs
- ./icons:/app/public/icons
- ${CONFIG_MNT}:/app/data/configs
- ${ICONS_MNT}:/app/public/icons
networks:
- proxy
ports:
@@ -17,19 +17,3 @@ services:
networks:
proxy:
external: true
# volumes:
# homarr_config:
# driver_opts:
# type: nfs
# o: "addr=${NFS_ADDR},nolock,soft,rw"
# device: "${HOMARR_CONFIG_MNT:-:/mnt/homarr/config}"
# labels:
# dev.housh.description: "Homarr configuration volume."
# homarr_icons:
# driver_opts:
# type: nfs
# o: "addr=${NFS_ADDR},nolock,soft,rw"
# device: "${HOMARR_ICONS_MNT:-:/var/nfs/shared/docker/homarr/icons}"
# labels:
# dev.housh.description: "Homarr icons volume."

View File

@@ -1,3 +1,2 @@
NFS_ADDR="nas.local"
HOMARR_CONFIG_MNT=":/var/nfs/shared/<mnt>/homarr/config"
HOMARR_ICONS_MNT=":/var/nfs/shared/<mnt>/homarr/icons"
CONFIG_MNT="/mnt" # Host mount path for configuration files.
ICONS_MNT="/mnt" # Host mount path for icons.