services: fastgptrag2api: build: . container_name: fastgptrag2api ports: - "${APP_PORT:-8000}:8000" env_file: - .env environment: - APP_HOST=0.0.0.0 - APP_PORT=8000 restart: unless-stopped healthcheck: test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"] interval: 30s timeout: 5s retries: 3 start_period: 10s