Multiplayer: Spielräume mit Code, Ready-Start, geheime Rankings auf jedem Handy (Game-API + Sync-Frontend)
Build & Deploy / deploy (push) Successful in 19s
Build & Deploy / deploy (push) Successful in 19s
This commit is contained in:
@@ -5,6 +5,9 @@
|
||||
# Dienste:
|
||||
# onebis8-web nginx, statisches dist/ (Mobile-App), proxiet
|
||||
# POST /api/mail/send → onebis8-mail-api (Token aus app.env)
|
||||
# und /api/game/* → onebis8-api (Multiplayer-Spielräume)
|
||||
# onebis8-api Game-API: Spielräume, Ready-Start, geheime Rankings,
|
||||
# Punkteberechnung (reine Node-Standardbibliothek)
|
||||
# onebis8-mail Postfix-Relay (nur intern im Docker-Netz, kein -p)
|
||||
# onebis8-mail-api schlanke Mail-HTTP-API mit Outbox/Retry (Muster: mp-mail-api)
|
||||
#
|
||||
@@ -27,6 +30,22 @@ services:
|
||||
- app.env
|
||||
depends_on:
|
||||
- onebis8-mail-api
|
||||
- onebis8-api
|
||||
networks:
|
||||
- npm_default
|
||||
|
||||
# Game-API fuer Multiplayer-Spielräume (jeder Spieler auf seinem Handy)
|
||||
onebis8-api:
|
||||
image: node:22-alpine
|
||||
container_name: onebis8-api
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
PORT: "8080"
|
||||
DATA_DIR: /data
|
||||
command: ["node", "/app/server.js"]
|
||||
volumes:
|
||||
- ./game/api/server.js:/app/server.js:ro
|
||||
- onebis8-game-data:/data
|
||||
networks:
|
||||
- npm_default
|
||||
|
||||
@@ -71,3 +90,4 @@ networks:
|
||||
|
||||
volumes:
|
||||
onebis8-mail-data:
|
||||
onebis8-game-data:
|
||||
|
||||
Reference in New Issue
Block a user