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
|
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."
|
|
||||||
|
|||||||
@@ -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"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user