Add local docker-compose pulling from DockerHub with SQLite and .env

This commit is contained in:
Oliver Hofmann 2026-04-29 09:33:04 +02:00
parent 92fd66381f
commit bd0dc0478f

View File

@ -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