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
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:
parent
9e39792d49
commit
eaecc41bb1
1 changed files with 5 additions and 2 deletions
|
|
@ -4,9 +4,12 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
env_file:
|
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:
|
environment:
|
||||||
- DB_PATH=/data/power_compare.db
|
- DB_PATH=/data/power_compare.db
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/data
|
- /Users/davidlawler/docker/power-compare-data/data:/data
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue