Files
Ymir/docker-compose.yml
vinihcrosaandClaude Sonnet 4.6 6ba2755448 fix(web): downgrade react-leaflet to v4 for React 18 compatibility
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>
2026-06-28 03:44:16 -03:00

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: