- frontend (Vite/React) + server (Hono/Drizzle) scaffold under web/ - eeschema WASM embind kicadOpenFile hook + programmatic open-flow - skip KiCad first-run setup wizard by seeding default config in preRun - dev: auto-sync output/ WASM artifacts into tests/apps/kicad via link-wasm Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
26 lines
901 B
YAML
26 lines
901 B
YAML
# Local infrastructure for the KiCad web app.
|
|
#
|
|
# NOTE: the Postgres host port defaults to a non-default value (54329) so it
|
|
# does not collide with a Postgres already listening on the standard 5432.
|
|
# Override with POSTGRES_PORT in web/.env if 54329 is taken. The container
|
|
# always listens on 5432 internally; only the published host port changes.
|
|
services:
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_USER: ${POSTGRES_USER:-kicad}
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-kicad}
|
|
POSTGRES_DB: ${POSTGRES_DB:-kicad_web}
|
|
ports:
|
|
- "${POSTGRES_PORT:-54329}:5432"
|
|
volumes:
|
|
- kicad_web_pgdata:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-kicad} -d ${POSTGRES_DB:-kicad_web}"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
|
|
volumes:
|
|
kicad_web_pgdata:
|