services: prostograf: image: prostograf:latest build: context: . dockerfile: Dockerfile ports: - "${HOST:-0.0.0.0}:${PORT:-9621}:9621" volumes: - ./data/rag_storage:/app/data/rag_storage - ./data/inputs:/app/data/inputs - ./data/prompts:/app/data/prompts - ./.env:/app/.env # unless-stopped: сервер сам завершает процесс при сохранении настроек # моделей из WebUI, Docker поднимает его заново с новыми настройками restart: unless-stopped healthcheck: test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:9621/health', timeout=5)"] interval: 30s timeout: 10s retries: 3 start_period: 30s extra_hosts: - "host.docker.internal:host-gateway" environment: WORKING_DIR: "/app/data/rag_storage" INPUT_DIR: "/app/data/inputs" PROMPT_DIR: "/app/data/prompts" HOST: "0.0.0.0" PORT: "9621"