chore: add Dockerfile and docker-compose with static file serving

Multi-stage Docker build (web → server → production). Fastify serves
React build in production with SPA fallback. Docker Compose with volume
for SQLite persistence.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Bas van Rossem
2026-02-19 16:30:17 +01:00
parent 510820b77a
commit 9ef1199324
4 changed files with 96 additions and 2 deletions

21
docker-compose.yml Normal file
View File

@@ -0,0 +1,21 @@
version: "3.8"
services:
spelljammer:
build:
context: .
dockerfile: Dockerfile
container_name: spelljammer-ships
ports:
- "3000:3000"
volumes:
- spelljammer-data:/data
environment:
- NODE_ENV=production
- PORT=3000
- DB_PATH=/data/spelljammer.sqlite
restart: unless-stopped
volumes:
spelljammer-data:
driver: local