From bd0dc0478f5f3aab3c17507a96f7a2f7f7008900 Mon Sep 17 00:00:00 2001 From: Oliver Hofmann Date: Wed, 29 Apr 2026 09:33:04 +0200 Subject: [PATCH] Add local docker-compose pulling from DockerHub with SQLite and .env --- docker-compose.yml | 34 ++++++++++------------------------ 1 file changed, 10 insertions(+), 24 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index e55e87f..b328d62 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,24 +1,10 @@ -backend: - build: - context: ./backend - dockerfile: Dockerfile - ports: - - "8000:8000" - environment: - - DATABASE_URL=postgresql://ollama:password@db:5432/ollama_proxy - - OLLAMA_URL=http://ollama:11434 - - SECRET_KEY=your-secret-key-change-me - depends_on: - - db - -db: - image: postgres:16 - environment: - - POSTGRES_USER=ollama - - POSTGRES_PASSWORD=password - - POSTGRES_DB=ollama_proxy - volumes: - - postgres_data:/var/lib/postgresql/data - -volumes: - postgres_data: +services: + llmproxy: + image: mediaeng/llmproxy:latest + restart: unless-stopped + env_file: .env + ports: + - "${PROXY_PORT:-8000}:${PROXY_PORT:-8000}" + volumes: + - ./backend/test.db:/app/backend/test.db + - ./backend/logs:/app/backend/logs