821 B
821 B
compose.yml
services:
db:
image: postgres:17-alpine
container_name: oui-db
restart: always
environment:
- POSTGRES_USER=webui
- POSTGRES_PASSWORD=webui_password
- POSTGRES_DB=open_webui
volumes:
- db_data:/var/lib/postgresql/data
open-webui:
image: ghcr.io/open-webui/open-webui:main
container_name: oui
restart: always
ports:
- "3000:8080"
depends_on:
- db
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- 'DATABASE_URL=postgresql://webui:webui_password@db:5432/open_webui'
- 'OPENAI_API_BASE_URL=http://host.docker.internal:4000/v1'
- 'OPENAI_API_KEY=sk-1234'
- 'WEBUI_SECRET_KEY=super_secret_key'
volumes:
- oui_data:/app/data
volumes:
db_data:
oui_data: