diff --git a/compose.yaml b/compose.yaml index 4393db4..aa40dc1 100644 --- a/compose.yaml +++ b/compose.yaml @@ -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." diff --git a/example.env b/example.env index ca25bde..7288fdb 100644 --- a/example.env +++ b/example.env @@ -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/" +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.