feat: implement initial Deno server with WebSocket API, static file serving, and development Docker Compose.
All checks were successful
Build and Push Docker Image / docker (push) Successful in 21s

This commit is contained in:
2026-01-03 22:07:34 +01:00
parent 70be1e7e39
commit c9be49d988
11 changed files with 258 additions and 69 deletions

44
docker-compose.dev.yml Normal file
View File

@@ -0,0 +1,44 @@
# 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