Files
hitstar/docker-compose.dev.yml
2026-01-03 22:07:34 +01:00

45 lines
1.1 KiB
YAML

# Development Docker Compose for Hitstar
# Enables hot reload and debugging for local development
#
# Usage:
# docker compose -f docker-compose.dev.yml up --build
#
# Debugging:
# Connect to chrome://inspect or VS Code debugger at localhost:9229
services:
hitstar-dev:
build:
context: .
dockerfile: Dockerfile
target: development
image: hitstar-deno:dev
container_name: hitstar-dev
environment:
- DENO_ENV=development
- PORT=5173
ports:
# Application port
- "5173:5173"
# Deno inspector/debugger port
- "9229:9229"
volumes:
# Mount source code for hot reload
- ./src/server-deno:/app:cached
# Mount data directory
- ./data:/app/data
# Override CMD to enable debugging with inspector
command: >
deno run --allow-net --allow-read --allow-env --allow-write --watch --inspect=0.0.0.0:9229 main.ts
networks:
- hitstar-dev-network
# Restart on crash during development
restart: unless-stopped
# Enable stdin for interactive debugging
stdin_open: true
tty: true
networks:
hitstar-dev-network:
driver: bridge