feat: Updates compose file to bind mount volume.

This commit is contained in:
2025-04-10 08:31:19 -04:00
parent 2b7aded13c
commit 0831b9f69d
2 changed files with 4 additions and 14 deletions

View File

@@ -7,7 +7,7 @@ services:
LOG_LEVEL: ${LOG_LEVEL:-debug}
SQLITE_FILENAME: ${SQLITE_FILENAME:-/data/db.sqlite}
volumes:
- purchase_order_data:/data
- ${DATA_MNT}:/data
networks:
- proxy
ports:
@@ -22,12 +22,3 @@ services:
networks:
proxy:
external: true
volumes:
purchase_order_data:
driver_opts:
type: "nfs"
o: "addr=${NFS_ADDR},nolock,soft,rw"
device: "${NFS_MNT}"
labels:
dev.housh.description: "Purchase orders database volume."

View File

@@ -1,4 +1,3 @@
LOG_LEVEL=debug # info | debug | warning | trace | error
SQLITE_FILENAME=/data/db.sqlite
NFS_ADDR=nas.local
NFS_MNT=":/var/nfs/shared/<mnt>"
LOG_LEVEL=debug # info | debug | warning | trace | error
SQLITE_FILENAME=/data/db.sqlite # filename / path inside the container.
DATA_MNT="/mnt" # folder mount on host that holds the database file.