SLM config now sync to SLMM, SLMM caches configs for speed

This commit is contained in:
serversdwn
2026-01-07 18:33:58 +00:00
parent 6d34e543fe
commit c30d7fac22
12 changed files with 1893 additions and 124 deletions

View File

@@ -1,9 +1,9 @@
services:
# --- PRODUCTION ---
seismo-backend:
# --- TERRA-VIEW PRODUCTION ---
terra-view-prod:
build: .
container_name: seismo-fleet-manager
container_name: terra-view
ports:
- "8001:8001"
volumes:
@@ -11,8 +11,10 @@ services:
environment:
- PYTHONUNBUFFERED=1
- ENVIRONMENT=production
- SLMM_BASE_URL=http://172.19.0.1:8100
- SLMM_BASE_URL=http://slmm:8100
restart: unless-stopped
depends_on:
- slmm
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8001/health"]
interval: 30s
@@ -20,10 +22,10 @@ services:
retries: 3
start_period: 40s
# --- DEVELOPMENT ---
sfm-dev:
# --- TERRA-VIEW DEVELOPMENT ---
terra-view-dev:
build: .
container_name: sfm-dev
container_name: terra-view-dev
ports:
- "1001:8001"
volumes:
@@ -31,7 +33,10 @@ services:
environment:
- PYTHONUNBUFFERED=1
- ENVIRONMENT=development
- SLMM_BASE_URL=http://slmm:8100
restart: unless-stopped
depends_on:
- slmm
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8001/health"]
interval: 30s
@@ -39,6 +44,28 @@ services:
retries: 3
start_period: 40s
# --- SLMM (Sound Level Meter Manager) ---
slmm:
build:
context: ../../slmm
dockerfile: Dockerfile
container_name: slmm
ports:
- "8100:8100"
volumes:
- ../../slmm/data:/app/data
environment:
- PYTHONUNBUFFERED=1
- PORT=8100
- CORS_ORIGINS=*
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8100/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
volumes:
data:
data-dev: