in the intut folder should be a nodes.json generated by Yanic.
api.json generated by https://freifunk.net/api-generator/
docker-compose.yml
api-nodecount-updater:
container_name: api-nodecount-updater
image: ffin/api-nodecount-updater:latest
restart: always
volumes:
- yanic:/input:ro
- .api-nodecount-updater/api.json:input/api.json:ro
- api:/output:rw
healthcheck:
test: "test $$(($$(date +%s)-$$(stat -c %Y /output/api.json))) -lt 600 || exit 1"
interval: 60s
timeout: 10s
retries: 3
start_period: 60s
network_mode: none
api:
image: nginx:alpine
container_name: api
restart: always
volumes:
- api:/usr/share/nginx/html:ro
healthcheck:
test: "wget --quiet --spider --tries=1 http://localhost/api.json || exit 1"
interval: 60s
timeout: 10s
retries: 3
start_period: 60s
Content type
Image
Digest
sha256:e69ad9863…
Size
6.4 MB
Last updated
17 days ago
docker pull ffin/api-node-updater