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