networks: public: external: true services: readme-stats: build: . container_name: readme-stats env_file: - .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 labels: - "com.centurylinklabs.watchtower.enable=false" # built, disable watchtower - homepage.group=Sites - homepage.name=Github Readme Stats - homepage.icon=github - homepage.href=https://readme.digitaladapt.com - kuma.__docker logging: driver: syslog options: tag: readme_stats networks: - public restart: always user: ${USER_ID}:${GROUP_ID} volumes: - /etc/localtime:/etc/localtime:ro # read-only # allow watchtower to monitor for update to base image, since our container is built readme_stats_monitor: container_name: readme_stats_monitor entrypoint: "/bin/true" image: node:lts-alpine restart: no user: ${USER_ID}:${GROUP_ID}