Alerting: Add Mimir Backend image to devenv (blocks) (#76416)

This commit is contained in:
Santiago 2023-10-13 16:15:05 +01:00 committed by GitHub
parent 2877723648
commit 20e624dafd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 37 additions and 0 deletions

1
.github/CODEOWNERS vendored
View File

@ -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

View 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"

View File

@ -0,0 +1,2 @@
// test:test
test:$apr1$fzP1qWUA$gGOojmRicBlNiSdiSGjwv1

View 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};
}
}
}