Bind-mount state to /media/disk1/containers/volcanic_secretary

Switch from named volumes to bind mounts under one host directory so
the workspace, pi-agent, and claude state is easy to back up / inspect
on the Coolify host.

Also re-adds the sleep-infinity override so the container stays up
while claude auth is redone against the new (empty) claude bind mount.
This commit is contained in:
EugeneTes
2026-09-06 17:59:29 +00:00
parent 0a49bd28e0
commit f1933d796a

View File

@@ -5,6 +5,10 @@ services:
# Node does not reap zombies from killed script process groups (scheduled scripts run in
# their own detached process group so the whole tree can be signalled); an init process does.
init: true
# Temporarily override the app entrypoint so the container stays up while pi.dev / claude
# auth is set up manually (docker exec -it <c> bash, then run `claude` and/or `pi login`).
# Remove this line to re-enable the normal app startup.
command: ["sleep", "infinity"]
environment:
- TELEGRAM_BOT_TOKEN=${TELEGRAM_BOT_TOKEN}
- TELEGRAM_OWNER_ID=${TELEGRAM_OWNER_ID}
@@ -15,11 +19,6 @@ services:
- SECRETARY_TIMEZONE=${SECRETARY_TIMEZONE:-UTC}
- LOG_LEVEL=${LOG_LEVEL:-info}
volumes:
- secretary-workspace:/workspace
- secretary-pi-agent:/pi-agent
- secretary-claude:/root/.claude
volumes:
secretary-workspace:
secretary-pi-agent:
secretary-claude:
- /media/disk1/containers/volcanic_secretary/workspace:/workspace
- /media/disk1/containers/volcanic_secretary/pi-agent:/pi-agent
- /media/disk1/containers/volcanic_secretary/claude:/root/.claude