-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.env.example.yml
More file actions
43 lines (37 loc) · 1.01 KB
/
docker-compose.env.example.yml
File metadata and controls
43 lines (37 loc) · 1.01 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
version: '3.8'
services:
ghcr-exporter:
image: ghcr.io/d0ugal/ghcr-exporter:v2.10.6
container_name: ghcr-exporter
ports:
- "8080:8080"
environment:
# GitHub API configuration
- GITHUB_TOKEN=your_github_token_here
# Server configuration
- GHCR_EXPORTER_SERVER_HOST=0.0.0.0
- GHCR_EXPORTER_SERVER_PORT=8080
# Logging configuration
- GHCR_EXPORTER_LOG_LEVEL=info
- GHCR_EXPORTER_LOG_FORMAT=json
# Metrics configuration
- GHCR_EXPORTER_METRICS_DEFAULT_INTERVAL=60s
# Timezone
- TZ=UTC
restart: unless-stopped
deploy:
resources:
limits:
memory: 256M
reservations:
memory: 128M
# Example with minimal configuration:
# services:
# ghcr-exporter:
# image: ghcr.io/d0ugal/ghcr-exporter:v2.0.7
# container_name: ghcr-exporter
# ports:
# - "8080:8080"
# environment:
# - GITHUB_TOKEN=your_github_token_here
# restart: unless-stopped