From a859138a50a7b7a53fd0b918c94cd7174689ff95 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Sat, 18 Apr 2026 22:40:21 -0500 Subject: add docker deployment option --- compose.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 compose.yml (limited to 'compose.yml') 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: -- cgit v1.2.3