Files
boWave/docker-compose.dev.yml
denshooter 8192388c5d fix: Add --legacy-peer-deps to npm install in docker-compose for React 18/19 peer dependency conflict
This fixes the dashboard container failing to install dependencies due to
react-leaflet v5 requiring React 19 while the project uses React 18.3.1.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-27 15:09:20 +01:00

56 lines
1.8 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Development override real services, no hardware needed.
# Usage: docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d
# Mac audio output: make mac-audio
# Spotify Connect: make spotify
services:
signalk:
environment:
- SIGNALK_DEMO=true # Built-in demo NMEA data generator
# Librespot: stub in dev (pipe backend doesn't cross VM boundary).
# For real Spotify on Mac run: make spotify
librespot:
build:
context: ./docker/librespot
dockerfile: Dockerfile.dev
entrypoint: []
command: ["sh", "-c", "echo 'librespot stub: run make spotify for Mac audio' && sleep infinity"]
restart: "no"
volumes: []
ports: []
# Zones: real snapclient containers with null player (v0.35+, URI format)
zone-salon:
command: ["--hostID", "zone-salon", "--player", "file:filename=null", "tcp://snapserver"]
zone-cockpit:
command: ["--hostID", "zone-cockpit", "--player", "file:filename=null", "tcp://snapserver"]
zone-bug:
command: ["--hostID", "zone-bug", "--player", "file:filename=null", "tcp://snapserver"]
zone-heck:
command: ["--hostID", "zone-heck", "--player", "file:filename=null", "tcp://snapserver"]
# Vite dev server with HMR — uses Dockerfile.dev to avoid overwriting node:20-alpine
dashboard:
build:
context: ./dashboard
dockerfile: Dockerfile.dev
entrypoint: []
working_dir: /app
volumes:
- ./dashboard:/app
- /app/node_modules
command: ["sh", "-c", "npm install --legacy-peer-deps && npm run dev -- --host 0.0.0.0 --port 8090"]
ports:
- "8090:8090"
environment:
- VITE_SNAPCAST_HOST=localhost
- VITE_SIGNALK_HOST=localhost
- VITE_MOPIDY_HOST=localhost
- VITE_JELLYFIN_HOST=localhost
- VITE_USE_MOCK=true # Use mock data for dev testing (real APIs when false)