add custom names to each server and move grafana to be accessed thru caddy instead of directly

This commit is contained in:
Oliver 2024-06-04 14:46:45 -06:00
parent 9dec2ded89
commit 7c859bbcf5
2 changed files with 15 additions and 5 deletions

View File

@ -1,11 +1,23 @@
{
admin :2019
servers {
servers :80 {
name static_site
metrics
}
servers :80 {
name grafana
metrics
}
}
:80
respond "Data\n"
:80 {
root * /path/to/html
file_server
}
:3000 {
reverse_proxy grafana:3000
}

View File

@ -29,8 +29,6 @@ services:
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
- GF_FEATURE_TOGGLES_ENABLE=traceqlEditor
ports:
- "3000:3000"
volumes:
- grafana-storage:/var/lib/grafana
depends_on: