Skip to content

Commit a4fc420

Browse files
GuyKhkeriatinightah
authored
feat: expose cadvisor interface through Caddy (stefanprodan#273)
* Expose cAdvisor WebUI through Caddy * Add 8080 to Caddy docker-compose * Update caddy/Caddyfile Co-authored-by: Attila Kerekes <[email protected]> * refactor: caddyfile formatting Co-authored-by: Attila Kerekes <[email protected]> Co-authored-by: Amir Zarrinkafsh <[email protected]>
1 parent 9dba592 commit a4fc420

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

caddy/Caddyfile

+12-6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
:3000 {
2+
reverse_proxy grafana:3000
3+
}
4+
5+
:8080 {
6+
basicauth /* {
7+
{$ADMIN_USER} {$ADMIN_PASSWORD_HASH}
8+
}
9+
reverse_proxy cadvisor:8080
10+
}
11+
112
:9090 {
213
basicauth /* {
314
{$ADMIN_USER} {$ADMIN_PASSWORD_HASH}
@@ -15,11 +26,6 @@
1526
:9091 {
1627
basicauth /* {
1728
{$ADMIN_USER} {$ADMIN_PASSWORD_HASH}
18-
}
19-
29+
}
2030
reverse_proxy pushgateway:9091
2131
}
22-
23-
:3000 {
24-
reverse_proxy grafana:3000
25-
}

docker-compose.yml

+1
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ services:
122122
container_name: caddy
123123
ports:
124124
- "3000:3000"
125+
- "8080:8080"
125126
- "9090:9090"
126127
- "9093:9093"
127128
- "9091:9091"

0 commit comments

Comments
 (0)