version: '3.8' services: apex-ores: build: . container_name: apex-ores ports: - "7860:7860" volumes: - ./logs:/var/log/apex environment: - FLASK_ENV=production - FLASK_APP=run.py - PYTHONPATH=/app # URL PostgreSQL SIMPLIFIÉE (sans channel_binding) - DATABASE_URL=postgresql://neondb_owner:npg_2ew9miZStgCn@ep-falling-union-ahdrk8h5-pooler.c-3.us-east-1.aws.neon.tech/neondb?sslmode=require - SECRET_KEY=${SECRET_KEY:-change-this-secret-key-in-production} - LYGOS_API_KEY=${LYGOS_API_KEY:-lygosapp-039b7ab9-5c2d-4fbc-ac5f-70154f5ad5d3} - BASE_URL=${BASE_URL:-http://localhost:7860} # Options SSL pour psycopg2 - PGSSLMODE=require - PGSSLCERT=none - PGSSLKEY=none restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:7860/health"] interval: 30s timeout: 10s retries: 3 start_period: 60s logging: driver: "json-file" options: max-size: "10m" max-file: "3"