services: platform-backend: build: context: /opt/platform dockerfile: platform-backend.Dockerfile restart: unless-stopped environment: APP_NAME: Platform APP_VERSION: 1.0.0 APP_DEBUG: "false" APP_CORS_ORIGINS: "http://192.168.1.35" DATABASE_URL: "sqlite:////data/platform.db" JWT_SECRET_KEY: "CHANGE_ME_PLATFORM_JWT_SECRET" JWT_ALGORITHM: "HS256" JWT_ACCESS_TOKEN_EXPIRE_MINUTES: "480" volumes: - platform_data:/data expose: - "8000" healthcheck: test: [ "CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/api/v1/health')" ] interval: 10s timeout: 5s retries: 5 start_period: 10s platform-frontend: build: context: /opt/platform dockerfile: platform-frontend.Dockerfile restart: unless-stopped depends_on: platform-backend: condition: service_healthy ports: - "80:80" volumes: platform_data: