version: "3.7" services: # Ingress caddy: image: lucaslorentz/caddy-docker-proxy ports: - 80:80 - 443:443 environment: - CADDY_INGRESS_NETWORKS=caddy networks: - caddy volumes: - /var/run/docker.sock:/var/run/docker.sock - caddy_data:/data restart: unless-stopped # Automatic Container Updates watchtower: image: containrrr/watchtower volumes: - /var/run/docker.sock:/var/run/docker.sock # Cleanup unused Docker Container janitor: image: flaviostutz/docker-janitor environment: - RUN_ON_STARTUP=true - PRUNE_VOLUMES=true - SLEEP_TIME=86400 - UNUSED_TIME=24h volumes: - /var/run/docker.sock:/var/run/docker.sock networks: caddy: external: true volumes: caddy_data: {}