mirror of
https://github.com/tiennm99/ghglance.git
synced 2026-10-11 12:18:55 +00:00
26 lines
731 B
YAML
26 lines
731 B
YAML
# ghglance web UI, built from this repo's Dockerfile.
|
|
services:
|
|
ghglance:
|
|
build: .
|
|
entrypoint: ["ghglance"]
|
|
command: ["-serve", ":8080", "-data-dir", "/data", "-retention", "24h"]
|
|
restart: unless-stopped
|
|
# Tells Coolify's proxy which container port to route to, even when the
|
|
# domain is entered without a ":8080" suffix.
|
|
expose:
|
|
- "8080"
|
|
environment:
|
|
- SERVICE_FQDN_GHGLANCE_8080
|
|
- GITHUB_TOKEN=${GHGLANCE_TOKEN:?set a public-only GitHub token}
|
|
volumes:
|
|
- ghglance-data:/data
|
|
healthcheck:
|
|
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:8080/healthz"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 10s
|
|
|
|
volumes:
|
|
ghglance-data:
|