mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Add devenv block for apache proxy working for Mac (#20119)
This commit is contained in:
committed by
GitHub
parent
a45ce36566
commit
55248f9269
4
devenv/docker/blocks/apache_proxy_mac/Dockerfile
Normal file
4
devenv/docker/blocks/apache_proxy_mac/Dockerfile
Normal file
@@ -0,0 +1,4 @@
|
||||
FROM jmferrer/apache2-reverse-proxy:latest
|
||||
|
||||
COPY ports.conf /etc/apache2/sites-enabled
|
||||
COPY proxy.conf /etc/apache2/sites-enabled
|
||||
10
devenv/docker/blocks/apache_proxy_mac/docker-compose.yaml
Normal file
10
devenv/docker/blocks/apache_proxy_mac/docker-compose.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
# This will proxy all requests for http://localhost:10081/grafana/ to
|
||||
# http://localhost:3000 (Grafana running locally)
|
||||
#
|
||||
# Please note that you'll need to change the root_url in the Grafana configuration:
|
||||
# root_url = %(protocol)s://%(domain)s:10081/grafana/
|
||||
|
||||
apacheproxy:
|
||||
build: docker/blocks/apache_proxy_mac
|
||||
ports:
|
||||
- "10081:10081"
|
||||
1
devenv/docker/blocks/apache_proxy_mac/ports.conf
Normal file
1
devenv/docker/blocks/apache_proxy_mac/ports.conf
Normal file
@@ -0,0 +1 @@
|
||||
Listen 10081
|
||||
4
devenv/docker/blocks/apache_proxy_mac/proxy.conf
Normal file
4
devenv/docker/blocks/apache_proxy_mac/proxy.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
<VirtualHost *:10081>
|
||||
ProxyPass /grafana/ http://host.docker.internal:3000/
|
||||
ProxyPassReverse /grafana/ http://host.docker.internal:3000/
|
||||
</VirtualHost>
|
||||
Reference in New Issue
Block a user