-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
24 lines (23 loc) · 939 Bytes
/
docker-compose.dev.yml
File metadata and controls
24 lines (23 loc) · 939 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Development override — use with:
# docker compose -f docker-compose.yml -f docker-compose.dev.yml up
#
# Replaces the production nginx frontend with the Vite dev server so that
# source changes hot-reload in the browser without rebuilding the image.
# The Vite proxy config (vite.config.ts) handles /api, /ws, and /health.
services:
frontend:
build:
context: ./frontend
target: build
# Override the nginx image entrypoint with the Vite dev server
command: npm run dev -- --host 0.0.0.0 --port 80
environment:
VITE_RADAR_LAYER: ${VITE_RADAR_LAYER:-RTX-N0B-0}
VITE_OBSERVATION_RANGE_KM: ${VITE_OBSERVATION_RANGE_KM:-50}
VITE_REGION_LAT: ${REGION_LAT:-45.3842}
VITE_REGION_LON: ${REGION_LON:--122.7635}
VITE_TILE_URL: ${VITE_TILE_URL:-}
VITE_PRESERVE_DRAWING_BUFFER: ${VITE_PRESERVE_DRAWING_BUFFER:-false}
volumes:
- ./frontend:/app
- /app/node_modules