Switch novelly-data to a bind mount at /mnt/storage/app/novelly/data
Named docker volume replaced with an explicit host path per user request. Requires the path to exist on the QA server and any data from the old novelly-data volume to be copied over manually before the next deploy.
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
name: novelly
|
name: novelly
|
||||||
|
|
||||||
# Persistent LAN deployment, pulled and recreated by CI on every push to main.
|
# Persistent LAN deployment, pulled and recreated by CI on every push to main.
|
||||||
# Unlike a throwaway QA stack, this one keeps its data volume across deploys — `down`
|
# Unlike a throwaway QA stack, this one keeps its data across deploys — `down` is run
|
||||||
# is run without `-v` so the author's novel data survives a redeploy.
|
# without `-v` and /data is a bind mount to /mnt/storage/app/novelly/data on the host,
|
||||||
|
# not a docker-managed volume, so the author's novel data survives a redeploy.
|
||||||
services:
|
services:
|
||||||
|
|
||||||
api:
|
api:
|
||||||
@@ -13,7 +14,7 @@ services:
|
|||||||
Cors__Origins__0: "http://localhost:${WEB_PORT:-6173}"
|
Cors__Origins__0: "http://localhost:${WEB_PORT:-6173}"
|
||||||
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}
|
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}
|
||||||
volumes:
|
volumes:
|
||||||
- novelly-data:/data
|
- /mnt/storage/app/novelly/data:/data
|
||||||
networks:
|
networks:
|
||||||
- novelly
|
- novelly
|
||||||
healthcheck:
|
healthcheck:
|
||||||
@@ -43,7 +44,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
ConnectionStrings__Novel: "Data Source=/data/novel.db"
|
ConnectionStrings__Novel: "Data Source=/data/novel.db"
|
||||||
volumes:
|
volumes:
|
||||||
- novelly-data:/data
|
- /mnt/storage/app/novelly/data:/data
|
||||||
networks:
|
networks:
|
||||||
- novelly
|
- novelly
|
||||||
profiles: ["tools"]
|
profiles: ["tools"]
|
||||||
@@ -51,7 +52,3 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
novelly:
|
novelly:
|
||||||
name: novelly-net
|
name: novelly-net
|
||||||
|
|
||||||
volumes:
|
|
||||||
novelly-data:
|
|
||||||
name: novelly-data
|
|
||||||
|
|||||||
Reference in New Issue
Block a user