krz/brand-bench
clone: git clone https://gitbay.org/krz/brand-bench.git
main: compose.yml · raw
1services:
2
3 app:
4 build: .
5 ports:
6 - "8000:80"
7 depends_on:
8 - ollama
9 restart: unless-stopped
10
11 ollama:
12 image: ollama/ollama
13 volumes:
14 - ollama_data:/root/.ollama
15 restart: unless-stopped
16 # Expose port 11434 if you want to reach Ollama directly from your host
17 # (e.g. to run `ollama pull` without exec-ing into the container).
18 ports:
19 - "11434:11434"
20
21 # ── GPU support ──────────────────────────────────────────────────────────
22 # Uncomment the block below if your server has an NVIDIA GPU.
23 # Requires the NVIDIA Container Toolkit:
24 # https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html
25 #
26 # deploy:
27 # resources:
28 # reservations:
29 # devices:
30 # - driver: nvidia
31 # count: all
32 # capabilities: [gpu]
33
34volumes:
35 ollama_data: