https://github.com/dmportella/docker-redis-commander
Simple docker setup for redis and redis commander.
https://github.com/dmportella/docker-redis-commander
docker docker-setup dockerhub redis redis-command
Last synced: 3 months ago
JSON representation
Simple docker setup for redis and redis commander.
- Host: GitHub
- URL: https://github.com/dmportella/docker-redis-commander
- Owner: dmportella
- License: mit
- Created: 2016-01-27T11:22:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-24T14:44:33.000Z (about 9 years ago)
- Last Synced: 2025-01-16T16:26:49.346Z (5 months ago)
- Topics: docker, docker-setup, dockerhub, redis, redis-command
- Language: Shell
- Size: 10.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Redis Commander in Docker
This is a simple docker setup for running a redis instance in conjuction with the popular free redis admin interface [Redis Commander](https://github.com/joeferner/redis-commander).
## DOCKERHUB
The official **DockerHub** repository for this project is at: [https://hub.docker.com/r/dmportella/redis-commander/](https://hub.docker.com/r/dmportella/redis-commander/)
[](https://hub.docker.com/r/dmportella/redis-commander/)
# Running this solution
This quite simple to run all commands are detailed below.
1. Clone this repository anywhere in your system.
## Redis
Firstly this setup uses a default and the official setup of redis from docker hub to install redis with a custom setup please visit redis web site.
1. Pull the redis image.
> $ `docker pull redis`
2. Run the newly installed image.
> $ `docker run --name redis -p "6379:6379" -d redis:latest`
## Commander
1. Build the redis commander dockerfile this command will create an image with the name commander and tag latest.
> $ `docker build -t commander:latest .`
2. Run the docker instance from the create image this command will create an container with the name commander linked the redis container and it will expose the application on 127.0.0.1:8080.
> $ `docker run --name commander --link redis:redis -p 127.0.0.1:8080:8080 -d commander:latest`
## Credentials
The default credentials are detailed below however if you want to change them you can pass pass in the following environment variables on the docker run command. See docker help docs for details about overridding environment variables on the run command.
> `COMMANDER_USER` and `COMMANDER_USER_PWD`.
### Default values
> URL: http://localhost:8080
> User name: `guest`
> Password: `guest`
## Addition helpful commands
see below a list of useful commands.
### Bash into the container
> $ `docker exec -it commander bash`
### Stop and delete the container and image
> $ `docker stop commander && docker rm commander && docker rmi commander`