Setting up RedisInsight GUI on ubuntu machine using docker and nginx
Using the following docker-compose
on Ubuntu 20.04 machine
version: '3.7'
services:
redis-ui:
image: redislabs/redisinsight
container_name: redis-ui
volumes:
- redisinsight:/db
ports:
- "8001:8001"
restart: on-failure
volumes:
redisinsight:
And the following nginx config
upstream redisinsight_server {
server localhost:8001;
}
server {
server_name sub.example.in;
client_max_body_size 50M;
location /redis/ {
proxy_pass http://redisinsight_server/;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
The docker is run using the command
docker-compose up
and trying to access the RedisInsight on the following URL
http://sub.example.com/redis/
But it gives a blank page only