123456789101112131415161718192021222324 |
- version: '3.8'
- services:
- ollama:
- image: ollama/ollama:latest
- ports:
- - "11434:11434"
- volumes:
- - ${OLLAMA_VOLUME_PATH:-ollama}:/root/.ollama
- backend:
- build:
- context: ./backend
- dockerfile: Dockerfile
- ports:
- - "7878:7878"
- environment:
- - OLLAMA_HOST=http://ollama:11434
- # Just remove `=xxx` to have the env variable passed forward
- - OPENAI_API_KEY=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
- depends_on:
- - ollama
- volumes:
- ollama:
|