forked from mirrored/github-readme-stats
38 lines
882 B
YAML
38 lines
882 B
YAML
# `docker network create proxied --internal --ipv6`
|
|
# `docker network create public --ipv6`
|
|
networks:
|
|
proxied:
|
|
external: true
|
|
public:
|
|
external: true
|
|
|
|
services:
|
|
readme_stats:
|
|
build: .
|
|
container_name: readme_stats
|
|
labels:
|
|
- "com.centurylinklabs.watchtower.enable=false"
|
|
restart: always
|
|
env_file:
|
|
- .env
|
|
networks:
|
|
- proxied
|
|
- public
|
|
expose:
|
|
- $port
|
|
healthcheck:
|
|
test: wget --no-verbose -O - --tries=1 http://localhost:$$port/?username=digitaladapt | grep 'GitHub Stats' || exit 1
|
|
interval: 60m # hourly
|
|
retries: 3
|
|
start_interval: 1s
|
|
start_period: 10s
|
|
timeout: 5s
|
|
|
|
# special container, just for watchtower, to monitor underlying image
|
|
readme_stats_monitor:
|
|
image: node:lts-alpine
|
|
container_name: readme_stats_monitor
|
|
restart: no
|
|
entrypoint: "/bin/true"
|
|
|