services: # --- TERRA-VIEW PRODUCTION --- terra-view-prod: build: . container_name: terra-view network_mode: host volumes: - ./data:/app/data environment: - PYTHONUNBUFFERED=1 - ENVIRONMENT=production - PORT=8001 - SLMM_BASE_URL=http://localhost:8100 restart: unless-stopped depends_on: - slmm healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8001/health"] interval: 30s timeout: 10s retries: 3 start_period: 40s # --- TERRA-VIEW DEVELOPMENT --- terra-view-dev: build: . container_name: terra-view-dev network_mode: host volumes: - ./data-dev:/app/data environment: - PYTHONUNBUFFERED=1 - ENVIRONMENT=development - PORT=1001 - SLMM_BASE_URL=http://localhost:8100 restart: unless-stopped depends_on: - slmm profiles: - dev healthcheck: test: ["CMD", "curl", "-f", "http://localhost:1001/health"] interval: 30s timeout: 10s retries: 3 start_period: 40s # --- SLMM (Sound Level Meter Manager) --- slmm: build: context: ../../slmm dockerfile: Dockerfile container_name: slmm network_mode: host 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: