Files
blog/docker-compose.dev.yml
davide 7ce073d2a9 Bind-mount PocketBase data dir in local dev instead of a named volume
Makes local test data (e.g. content pulled from production for testing)
directly inspectable and swappable on the host filesystem, without
affecting the production volume-based setup.
2026-09-11 13:53:17 +02:00

17 lines
557 B
YAML

# Local testing without domains or TLS: publishes the app ports on localhost and
# leaves Caddy out. Never used in production — it must be passed explicitly:
# docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d --build pocketbase frontend
services:
pocketbase:
ports:
- "127.0.0.1:8090:8090"
volumes:
- ./pocketbase/pb_data:/pb/pb_data
frontend:
ports:
- "127.0.0.1:3000:3000"
environment:
NUXT_PUBLIC_SITE_URL: http://localhost:3000
NUXT_PUBLIC_POCKETBASE_URL: http://localhost:8090