diff --git a/compose.yaml b/compose.yaml index 5ce4e9ee..569a3eef 100644 --- a/compose.yaml +++ b/compose.yaml @@ -11,7 +11,7 @@ services: expose: - ${port} healthcheck: - test: wget --no-verbose -O - --tries=1 http://localhost:$$port/?username=digitaladapt | grep 'GitHub Stats' || exit 1 + test: wget --no-verbose -O - --tries=1 http://localhost:$$port/?username=$$GH_UN | grep 'GitHub Stats' || exit 1 interval: 60m # hourly retries: 3 start_interval: 1s diff --git a/docker-compose.yml.example b/docker-compose.yml.example index f49c1cba..b0cf85f5 100644 --- a/docker-compose.yml.example +++ b/docker-compose.yml.example @@ -7,6 +7,14 @@ services: - .env expose: - $port + healthcheck: + test: wget --no-verbose -O - --tries=1 http://localhost:$$port/?username=$$GH_UN | grep 'GitHub Stats' || exit 1 + interval: 60m # hourly + retries: 3 + start_interval: 1s + start_period: 10s + timeout: 5s + init: true caddy: image: caddy diff --git a/env.example b/env.example index 849d93dc..53716095 100644 --- a/env.example +++ b/env.example @@ -1,5 +1,7 @@ # github token PAT_1= +# github username +GH_UN= # port to listen on port=9000