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 image: ghcr.io/ajnart/homarr:latest
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./config:/app/data/configs - ${CONFIG_MNT}:/app/data/configs
- ./icons:/app/public/icons - ${ICONS_MNT}:/app/public/icons
networks: networks:
- proxy - proxy
ports: ports:
@@ -17,19 +17,3 @@ services:
networks: networks:
proxy: proxy:
external: true 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" CONFIG_MNT="/mnt" # Host mount path for configuration files.
HOMARR_CONFIG_MNT=":/var/nfs/shared/<mnt>/homarr/config" ICONS_MNT="/mnt" # Host mount path for icons.
HOMARR_ICONS_MNT=":/var/nfs/shared/<mnt>/homarr/icons"