add custom names to each server and move grafana to be accessed thru caddy instead of directly
This commit is contained in:
parent
9dec2ded89
commit
7c859bbcf5
@ -1,11 +1,23 @@
|
|||||||
{
|
{
|
||||||
admin :2019
|
admin :2019
|
||||||
|
|
||||||
servers {
|
servers :80 {
|
||||||
|
name static_site
|
||||||
|
metrics
|
||||||
|
}
|
||||||
|
|
||||||
|
servers :80 {
|
||||||
|
name grafana
|
||||||
metrics
|
metrics
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
:80
|
:80 {
|
||||||
respond "Data\n"
|
root * /path/to/html
|
||||||
|
file_server
|
||||||
|
}
|
||||||
|
|
||||||
|
:3000 {
|
||||||
|
reverse_proxy grafana:3000
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -29,8 +29,6 @@ services:
|
|||||||
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
|
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
|
||||||
- GF_AUTH_DISABLE_LOGIN_FORM=true
|
- GF_AUTH_DISABLE_LOGIN_FORM=true
|
||||||
- GF_FEATURE_TOGGLES_ENABLE=traceqlEditor
|
- GF_FEATURE_TOGGLES_ENABLE=traceqlEditor
|
||||||
ports:
|
|
||||||
- "3000:3000"
|
|
||||||
volumes:
|
volumes:
|
||||||
- grafana-storage:/var/lib/grafana
|
- grafana-storage:/var/lib/grafana
|
||||||
depends_on:
|
depends_on:
|
||||||
|
Loading…
Reference in New Issue
Block a user