feat: expose cadvisor interface through Caddy (#273)

* Expose cAdvisor WebUI through Caddy

* Add 8080 to Caddy docker-compose

* Update caddy/Caddyfile

Co-authored-by: Attila Kerekes <ak@enrg8.com>

* refactor: caddyfile formatting

Co-authored-by: Attila Kerekes <ak@enrg8.com>
Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
This commit is contained in:
Guy Khmelnitsky 2022-11-16 03:37:30 +02:00 committed by GitHub
parent 9dba592150
commit a4fc420f4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 6 deletions

View File

@ -1,3 +1,14 @@
:3000 {
reverse_proxy grafana:3000
}
:8080 {
basicauth /* {
{$ADMIN_USER} {$ADMIN_PASSWORD_HASH}
}
reverse_proxy cadvisor:8080
}
:9090 {
basicauth /* {
{$ADMIN_USER} {$ADMIN_PASSWORD_HASH}
@ -15,11 +26,6 @@
:9091 {
basicauth /* {
{$ADMIN_USER} {$ADMIN_PASSWORD_HASH}
}
}
reverse_proxy pushgateway:9091
}
:3000 {
reverse_proxy grafana:3000
}

View File

@ -122,6 +122,7 @@ services:
container_name: caddy
ports:
- "3000:3000"
- "8080:8080"
- "9090:9090"
- "9093:9093"
- "9091:9091"