-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
44 lines (41 loc) · 1.5 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# OpenWebUI Exporter Docker Compose Configuration
#
# Build Configuration:
# - Use `docker-compose build` to build the image locally
# - Use `docker-compose up -d` to run in detached mode
# - Use `BUILD_TARGET=development docker-compose up` for development build
#
# Available build targets:
# - builder: Base build stage with all dependencies
# - production: Production-ready image (default)
# - development: Development image with testing tools
services:
exporter:
build:
context: .
dockerfile: Dockerfile
target: ${BUILD_TARGET:-production}
image: nicholascecere/exporter-openwebui:${TAG:-latest}
ports:
- "9091:9090"
environment:
# Database configuration
- OPENWEBUI_DB_NAME=${OPENWEBUI_DB_NAME:-openwebui}
- OPENWEBUI_DB_USER=${OPENWEBUI_DB_USER:-openwebui}
- OPENWEBUI_DB_PASSWORD=${OPENWEBUI_DB_PASSWORD}
- OPENWEBUI_DB_HOST=${OPENWEBUI_DB_HOST:-localhost}
- OPENWEBUI_DB_PORT=${OPENWEBUI_DB_PORT:-5432}
# Connection pool settings
- DB_MIN_CONNECTIONS=${DB_MIN_CONNECTIONS:-5}
- DB_MAX_CONNECTIONS=${DB_MAX_CONNECTIONS:-20}
# Metrics collection settings
- METRICS_UPDATE_INTERVAL=${METRICS_UPDATE_INTERVAL:-60s}
- METRICS_REQUEST_WINDOW=${METRICS_REQUEST_WINDOW:-24h}
- METRICS_ERROR_WINDOW=${METRICS_ERROR_WINDOW:-1h}
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9090/metrics"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s