react-leaflet v5 requires React 19 — caused "render2 is not a function" runtime crash and white screen. Downgraded to v4.2.1. fix(docker): separate DB volume mount from API dist directory Volume was mounted at /app/apps/api, overwriting compiled dist/ with stale files from previous container runs. Changed mount to /app/data for DB only. fix(api): copy area.json and vessel1.json into API Docker image Seed files could not resolve JSON data at container startup. Added COPY in Dockerfile and corrected path depth from 5 to 4 levels. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
34 lines
546 B
YAML
34 lines
546 B
YAML
services:
|
|
core:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/linux-x86_64/Dockerfile
|
|
target: ci
|
|
restart: "no"
|
|
|
|
api:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/api/Dockerfile
|
|
target: runner
|
|
ports:
|
|
- "3000:3000"
|
|
volumes:
|
|
- ymir_db:/app/data
|
|
environment:
|
|
PORT: "3000"
|
|
HOST: "0.0.0.0"
|
|
DB_PATH: "/app/data/ymir.db"
|
|
|
|
web:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/web/Dockerfile
|
|
ports:
|
|
- "5173:5173"
|
|
depends_on:
|
|
- api
|
|
|
|
volumes:
|
|
ymir_db:
|