38 lines
807 B
YAML
38 lines
807 B
YAML
x-default: &default
|
|
restart: unless-stopped
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: 100m
|
|
max-file: "3"
|
|
|
|
services:
|
|
open_webui:
|
|
<<: *default
|
|
image: ghcr.io/open-webui/open-webui:${OPEN_WEBUI_VERSION:-main}
|
|
ports:
|
|
- "${OPEN_WEBUI_PORT_OVERRIDE:-8080}:8080"
|
|
volumes:
|
|
- open_webui_data:/app/backend/data
|
|
environment:
|
|
- TZ=${TZ:-UTC}
|
|
env_file:
|
|
- .env
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '1'
|
|
memory: 512M
|
|
reservations:
|
|
cpus: '0.1'
|
|
memory: 128M
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 30s
|
|
|
|
volumes:
|
|
open_webui_data:
|