Use absolute host paths for env/data in docker-compose.yml
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 8s

The stack manager re-clones this repo fresh on every deploy, which was
silently wiping a .env and bind-mounted data placed inside the checkout
directory. Point both at a stable location outside it instead.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
dlawler489 2026-09-09 11:23:15 +10:00
parent 9e39792d49
commit eaecc41bb1

View file

@ -4,9 +4,12 @@ services:
ports:
- "8000:8000"
env_file:
- .env
# Absolute path, deliberately outside this repo checkout: the stack
# manager re-clones this directory fresh on every deploy, which would
# silently wipe a .env (or bind-mounted data) placed inside it.
- /Users/davidlawler/docker/power-compare-data/.env
environment:
- DB_PATH=/data/power_compare.db
volumes:
- ./data:/data
- /Users/davidlawler/docker/power-compare-data/data:/data
restart: unless-stopped