mirror of
https://github.com/grafana/grafana.git
synced 2024-12-28 18:01:40 -06:00
Alerting: Add Mimir Backend image to devenv (blocks) (#76416)
This commit is contained in:
parent
2877723648
commit
20e624dafd
1
.github/CODEOWNERS
vendored
1
.github/CODEOWNERS
vendored
@ -187,6 +187,7 @@
|
||||
/devenv/docker/blocks/maildev/ @grafana/alerting-frontend
|
||||
/devenv/docker/blocks/mariadb/ @grafana/grafana-bi-squad
|
||||
/devenv/docker/blocks/memcached/ @grafana/backend-platform
|
||||
/devenv/docker/blocks/mimir_backend/ @grafana/alerting-backend-product
|
||||
/devenv/docker/blocks/mssql/ @grafana/grafana-bi-squad
|
||||
/devenv/docker/blocks/mssql_arm64/ @grafana/grafana-bi-squad
|
||||
/devenv/docker/blocks/mssql_tests/ @grafana/grafana-bi-squad
|
||||
|
16
devenv/docker/blocks/mimir_backend/docker-compose.yaml
Normal file
16
devenv/docker/blocks/mimir_backend/docker-compose.yaml
Normal file
@ -0,0 +1,16 @@
|
||||
mimir_backend:
|
||||
image: grafana/mimir
|
||||
container_name: mimir_backend
|
||||
command:
|
||||
- -target=backend
|
||||
nginx:
|
||||
environment:
|
||||
- NGINX_ENVSUBST_OUTPUT_DIR=/etc/nginx
|
||||
- MIMIR_BACKEND_URL=mimir_backend:8080
|
||||
hostname: nginx
|
||||
image: nginxinc/nginx-unprivileged:1.22-alpine
|
||||
ports:
|
||||
- 8080:8080
|
||||
volumes:
|
||||
- "./docker/blocks/mimir_backend/nginx/nginx.conf.template:/etc/nginx/templates/nginx.conf.template"
|
||||
- "./docker/blocks/mimir_backend/nginx/.htpasswd:/etc/nginx/.htpasswd"
|
2
devenv/docker/blocks/mimir_backend/nginx/.htpasswd
Normal file
2
devenv/docker/blocks/mimir_backend/nginx/.htpasswd
Normal file
@ -0,0 +1,2 @@
|
||||
// test:test
|
||||
test:$apr1$fzP1qWUA$gGOojmRicBlNiSdiSGjwv1
|
18
devenv/docker/blocks/mimir_backend/nginx/nginx.conf.template
Normal file
18
devenv/docker/blocks/mimir_backend/nginx/nginx.conf.template
Normal file
@ -0,0 +1,18 @@
|
||||
pid /tmp/nginx.pid;
|
||||
|
||||
events {}
|
||||
|
||||
http {
|
||||
resolver 127.0.0.11 ipv6=off;
|
||||
|
||||
server {
|
||||
listen 8080;
|
||||
proxy_set_header X-Scope-OrgID $http_x_scope_orgid;
|
||||
|
||||
location / {
|
||||
auth_basic "Mimir Backend";
|
||||
auth_basic_user_file /etc/nginx/.htpasswd;
|
||||
proxy_pass http://${MIMIR_BACKEND_URL};
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user