downdetector/docker-compose.yaml

31 lines
549 B
YAML

version: '3'
services:
downdetector:
image: debian
container_name: down_detector
volumes:
- ./:/dd
environment:
- TZ=America/New_York
#entrypoint: ls -la /dd/scripts/file_uptime.sh
entrypoint: /dd/scripts/loop.sh /dd/logs /dd/conf/ips.txt
restart: always
caddy:
image: caddy
container_name: downdetector_caddy
ports:
- "80:80"
volumes:
- "./logs:/srv/logs"
command: "caddy file-server --browse /srv/logs"
depends_on:
- downdetector
restart: always