-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (41 loc) · 1.19 KB
/
Copy pathdocker-compose.yml
File metadata and controls
43 lines (41 loc) · 1.19 KB
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
services:
influxdb:
image: influxdb:2.7
container_name: influxdb
env_file: .env
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=${INFLUXDB_INIT_USERNAME:-admin}
- DOCKER_INFLUXDB_INIT_PASSWORD=${INFLUXDB_INIT_PASSWORD:-adminadmin1234}
- DOCKER_INFLUXDB_INIT_ORG=${INFLUXDB_ORG}
- DOCKER_INFLUXDB_INIT_BUCKET=${INFLUXDB_BUCKET}
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=${INFLUXDB_TOKEN}
ports:
- "127.0.0.1:8086:8086"
volumes:
- influxdb_data:/var/lib/influxdb2
restart: unless-stopped
healthcheck:
test: ["CMD", "sh", "-c", "curl -fsS http://localhost:8086/health >/dev/null || exit 1"]
interval: 10s
timeout: 3s
retries: 20
start_period: 15s
scraper:
container_name: openwebui-scraper
build:
context: .
dockerfile: scraper/Dockerfile
env_file: .env
depends_on:
influxdb:
condition: service_healthy
volumes:
- scraper_state:/state
environment:
- LASTRUN_FILE=/state/lastrun.txt
- SCRAPE_INTERVAL_SECONDS=${SCRAPE_INTERVAL_SECONDS:-120}
restart: unless-stopped
volumes:
influxdb_data:
scraper_state: