Files
test_dashboard/docker-compose.yml
T

44 lines
1.1 KiB
YAML
Raw Normal View History

2026-05-26 14:36:34 -04:00
services:
backend:
build: ./server
container_name: dashboard-backend
2026-06-02 13:08:45 -04:00
expose:
- "3001" # Remove public port, keep internal only
2026-05-28 12:34:01 -04:00
environment:
2026-05-28 15:14:21 -04:00
# Root path on the Docker host to mount inside the container.
# Linux VM: HOST_BROWSE_ROOT=/home/wnc
# Windows Docker Desktop: HOST_BROWSE_ROOT=C:/Users
# Then enter paths under /host/... in the dashboard settings.
2026-06-01 14:24:48 -04:00
- HOST_BROWSE_ROOT=${HOST_BROWSE_ROOT}
2026-05-28 12:34:01 -04:00
- HOST_MOUNT_ROOT=/host
2026-05-26 14:36:34 -04:00
volumes:
2026-05-28 11:01:47 -04:00
- type: bind
source: ./server
target: /app
2026-05-28 12:34:01 -04:00
- type: bind
2026-06-01 14:24:48 -04:00
source: ${HOST_BROWSE_ROOT}
2026-05-28 12:34:01 -04:00
target: /host
2026-05-26 14:36:34 -04:00
restart: unless-stopped
frontend:
build: ./dashboard
container_name: dashboard-frontend
2026-06-02 13:08:45 -04:00
expose:
- "5173" # Remove public port, keep internal only
depends_on:
- backend
restart: unless-stopped
nginx:
image: nginx:alpine
container_name: dashboard-nginx
2026-05-26 14:36:34 -04:00
ports:
2026-06-02 13:08:45 -04:00
- "80:80" # Single public entry point
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
2026-05-26 14:36:34 -04:00
depends_on:
- backend
2026-06-02 13:08:45 -04:00
- frontend
restart: unless-stopped