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:
23
docker-compose.yml
Normal file
23
docker-compose.yml
Normal 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:
|
||||
Reference in New Issue
Block a user