Skip to content

Docker label configurable Caddy proxy with Prometheus Exporter support

License

Notifications You must be signed in to change notification settings

stutzlab/caddy-ingress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

caddy-ingress

Docker label configurable Caddy proxy with Prometheus Exporter support

Plugins enabled in this Caddy binary:

Usage

  • Create docker-compose.yml
version: '3.5'
services:
  caddy:
    image: stutzlab/caddy-ingress
    labels:
      - caddy.order=prometheus first
    ports:
      - 8080:80
      - 8443:443
      - 9180:9180
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - caddy:/root

  helloworld:
    image: whalesalad/docker-debug
    labels:
      - caddy=localhost
      - caddy.reverse_proxy={{upstreams 8080}}
      - caddy.encode=gzip
      - caddy.prometheus=0.0.0.0:9180

volumes:
  caddy:
  • run docker-compose up -d

  • curl https://localhost:8080/

  • See hello world site!

About

Docker label configurable Caddy proxy with Prometheus Exporter support

Resources

License

Stars

Watchers

Forks

Packages

No packages published