version: '3.8' services: app: build: . ports: - "5000:5000" environment: - FLASK_ENV=production - FLASK_DEBUG=false - FLASK_HOST=0.0.0.0 - FLASK_PORT=5000 - FLASK_APP=src.app - SERPAPI_KEY=${SERPAPI_KEY} - WIKI_USERNAME=${WIKI_USERNAME} - WIKI_PASSWORD=${WIKI_PASSWORD} - OLLAMA_HOST=http://ollama:11434 - UPLOAD_FOLDER=uploads - MAX_CONTENT_LENGTH=16777216 volumes: - ./uploads:/app/uploads - ./data:/app/data depends_on: - ollama restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:5000/"] interval: 30s timeout: 10s retries: 3 ollama: image: ollama/ollama:latest ports: - "11434:11434" volumes: - ollama_data:/root/.ollama restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:11434/api/tags"] interval: 30s timeout: 10s retries: 3 volumes: ollama_data: