feat: Adds host mount.
This commit is contained in:
20
compose.yaml
20
compose.yaml
@@ -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."
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user