fixed network issue with multiple managed rooms

This commit is contained in:
buenosairesam
2026-01-27 02:26:03 -03:00
parent dd47f9c66f
commit 8c5deb74e8
12 changed files with 401 additions and 3 deletions

40
cfg/sample/soleprint/.env Normal file
View File

@@ -0,0 +1,40 @@
# =============================================================================
# SOLEPRINT - Sample Room Configuration
# =============================================================================
# Copy this to cfg/<your-room>/soleprint/.env and customize
# =============================================================================
# DEPLOYMENT
# =============================================================================
DEPLOYMENT_NAME=sample_spr
# =============================================================================
# NETWORK (unique per room to allow concurrent operation)
# =============================================================================
NETWORK_NAME=sample_network
# =============================================================================
# PORTS (choose unique ports for each room)
# =============================================================================
SOLEPRINT_PORT=12020
# =============================================================================
# GOOGLE OAUTH (optional - for auth)
# =============================================================================
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_REDIRECT_URI=http://sample.spr.local.ar/spr/artery/google/oauth/callback
# =============================================================================
# AUTH
# =============================================================================
AUTH_SESSION_SECRET=change-this-in-production
# =============================================================================
# DATABASE (optional - if your app uses a database)
# =============================================================================
DB_HOST=sample_db
DB_PORT=5432
DB_NAME=sampledb
DB_USER=postgres
DB_PASSWORD=localdev123

View File

@@ -0,0 +1,36 @@
# Soleprint Services - Docker Compose
#
# Runs soleprint hub as a single service
# Artery, atlas, station are accessed via path-based routing
#
# Usage:
# cd gen/<room>/soleprint && docker compose up -d
name: ${DEPLOYMENT_NAME}
services:
soleprint:
build:
context: .
dockerfile: Dockerfile
container_name: ${DEPLOYMENT_NAME}
user: "${UID:-1000}:${GID:-1000}"
volumes:
- .:/app
ports:
- "${SOLEPRINT_PORT}:8000"
env_file:
- .env
environment:
# For single-port mode, all subsystems are internal routes
- ARTERY_EXTERNAL_URL=/artery
- ATLAS_EXTERNAL_URL=/atlas
- STATION_EXTERNAL_URL=/station
networks:
- default
# Use run.py for single-port bare-metal mode
command: uvicorn run:app --host 0.0.0.0 --port 8000 --reload
networks:
default:
name: ${NETWORK_NAME}