Private
Public Access
1
0

Introduce core components for "Escape From Teacher" game: server, client, physics, asset system, and protocol definitions. Add Docker-Compose setup for Redis and NATS infrastructure.

This commit is contained in:
Sebastian Unterschütz
2026-01-01 15:21:18 +01:00
commit 3099ac42c0
9 changed files with 1384 additions and 0 deletions

23
docker-compose.yml Normal file
View File

@@ -0,0 +1,23 @@
services:
# 🧠 REDIS - Das Gedächtnis
# Speichert: Wer ist wo? (Room Registry), Highscores, Asset-Config
redis:
image: redis:7-alpine
container_name: escape_redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
# ⚡ NATS - Das Nervensystem
# Vermittelt: Inputs und Game-States zwischen Pods (Gateway <-> Host)
nats:
image: nats:alpine
container_name: escape_nats
ports:
- "4222:4222" # Client Port (für unsere Go Apps)
- "8222:8222" # Dashboard / Monitoring
command: "-js" # JetStream aktivieren (optional, aber gut für später)
volumes:
redis_data: