DEV Community

loading...

Grafana (MySQL) + Nginx reverse proxy

korakrit profile image Korakrit Chariyasathian ・1 min read
  1. Git clone from korakrit-c/grafana-with-nginx-on-docker.git

    git clone https://github.com/korakrit-c/grafana-with-nginx-on-docker.git
    
  2. Make sure you can run docker-compose then starting it

    docker-compose up -d
    
  3. Create a new config file on "nginx-revers-storage/conf.d/"

    cd nginx-revers-storage/conf.d/
    nano grafana.conf
    
  4. Add this config

    upstream grafana_dashboard {
      server    grafana_dashboard:3000;
    }
    server {
        listen 80;
        listen [::]:80;
        server_name grafana.local;
        location / {
            proxy_pass http://grafana_dashboard;
        }
    }
    
  5. Restart nginx

    docker exec nginx_reverse nginx -s reload
    

Discussion

pic
Editor guide