version: '3.8' services: frontend: build: ./frontend ports: - "3000:3000" environment: - NEXT_PUBLIC_API_URL=http://localhost:8000 depends_on: - backend backend: build: ./backend ports: - "8000:8000" volumes: - ./backend:/app depends_on: - ollama healthcheck: test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/api/v1/health')"] interval: 30s timeout: 10s retries: 3 ollama: image: ollama/ollama ports: - "11434:11434" volumes: - ollama-data:/root/.ollama volumes: ollama-data: