Add local docker-compose pulling from DockerHub with SQLite and .env
This commit is contained in:
parent
92fd66381f
commit
bd0dc0478f
@ -1,24 +1,10 @@
|
|||||||
backend:
|
services:
|
||||||
build:
|
llmproxy:
|
||||||
context: ./backend
|
image: mediaeng/llmproxy:latest
|
||||||
dockerfile: Dockerfile
|
restart: unless-stopped
|
||||||
|
env_file: .env
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "${PROXY_PORT:-8000}:${PROXY_PORT:-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:
|
volumes:
|
||||||
- postgres_data:/var/lib/postgresql/data
|
- ./backend/test.db:/app/backend/test.db
|
||||||
|
- ./backend/logs:/app/backend/logs
|
||||||
volumes:
|
|
||||||
postgres_data:
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user