e22f412c52
Image: ttrpg-app:local named a registry image. Without --build flag, compose tried pull first -> 'pull access denied' (private, unpublished). Then fell back to build. Confusing error. Removed image: field. Compose now auto-names (docker-app), always builds local, never attempts registry pull. Base images (node/caddy) pull once on first build, then cache. No pull_policy needed. docker compose up (from docker/ dir) now works clean.
24 lines
679 B
YAML
24 lines
679 B
YAML
# docker/docker-compose.yml — single container: caddy (front) + node (back).
|
|
# Usage (from repo root):
|
|
# docker compose -f docker/docker-compose.yml up --build
|
|
services:
|
|
app:
|
|
# no image: field => compose auto-names (docker-app), never pulls,
|
|
# always builds local. Service image private, never published.
|
|
build:
|
|
context: ..
|
|
dockerfile: docker/Dockerfile
|
|
args:
|
|
- REACT_APP_TRACKER_APP_ID=${TRACKER_APP_ID:-ttrpg-initiative-tracker-default}
|
|
ports:
|
|
- "${PORT:-8080}:80"
|
|
volumes:
|
|
- app-data:/data
|
|
environment:
|
|
- DB_PATH=/data/tracker.sqlite
|
|
- PORT=4001
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
app-data:
|