version: "3.8" services: api: build: . ports: - "8000:8000" depends_on: - ollama environment: OLLAMA_BASE_URL: "http://ollama:11434" volumes: - ./app:/app ollama: build: context: . dockerfile: Dockerfile.ollama ports: - "11434:11434"