services: # --- PRODUCTION --- seismo-backend: build: . container_name: seismo-fleet-manager ports: - "8001:8001" volumes: - ./data:/app/data environment: - PYTHONUNBUFFERED=1 - ENVIRONMENT=production restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8001/health"] interval: 30s timeout: 10s retries: 3 start_period: 40s # --- DEVELOPMENT --- sfm-dev: build: . container_name: sfm-dev ports: - "1001:8001" volumes: - ./data-dev:/app/data environment: - PYTHONUNBUFFERED=1 - ENVIRONMENT=development restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8001/health"] interval: 30s timeout: 10s retries: 3 start_period: 40s volumes: data: data-dev: