diff options
| author | Christian Cleberg <[email protected]> | 2026-04-18 22:40:21 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-04-18 22:40:21 -0500 |
| commit | a859138a50a7b7a53fd0b918c94cd7174689ff95 (patch) | |
| tree | 2132fa7394403331a47809c46ad7e30a99d31c2a /compose.yml | |
| parent | af6ac085443bf28a2229e8fc502a1cb290f03505 (diff) | |
| download | brand-bench-a859138a50a7b7a53fd0b918c94cd7174689ff95.tar.gz brand-bench-a859138a50a7b7a53fd0b918c94cd7174689ff95.tar.bz2 brand-bench-a859138a50a7b7a53fd0b918c94cd7174689ff95.zip | |
add docker deployment option
Diffstat (limited to 'compose.yml')
| -rw-r--r-- | compose.yml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..361301c --- /dev/null +++ b/compose.yml @@ -0,0 +1,35 @@ +services: + + app: + build: . + ports: + - "8000:80" + depends_on: + - ollama + restart: unless-stopped + + ollama: + image: ollama/ollama + volumes: + - ollama_data:/root/.ollama + restart: unless-stopped + # Expose port 11434 if you want to reach Ollama directly from your host + # (e.g. to run `ollama pull` without exec-ing into the container). + ports: + - "11434:11434" + + # ── GPU support ────────────────────────────────────────────────────────── + # Uncomment the block below if your server has an NVIDIA GPU. + # Requires the NVIDIA Container Toolkit: + # https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html + # + # deploy: + # resources: + # reservations: + # devices: + # - driver: nvidia + # count: all + # capabilities: [gpu] + +volumes: + ollama_data: |
