Project: https://github.com/progrium/dokku
cd /var/lib/dokku/plugins
git clone https://github.com/ohardy/dokku-redis redis
dokku plugins-install
$ dokku help
redis:flushall
redis:dbsize
redis:del <key>
redis:get <key>
redis:set <key> <value>
redis:info
redis:monitor
redis:ping
redis:keys [<pattern>]
redis:env Get generated environment variables
redis:url Get REDIS_URL for <app>
redis:dump > dump.rdb Dump database
redis:restore < dump.rdb Restore database
redis:admin_console Launch a Redis console as admin user
redis:restart Restart the Redis docker container and linked app
redis:start Start the Redis docker container if it isn't running
redis:stop Stop the Redis docker container
redis:status Shows status of Redis
redis:update Update this plugin
redis:migrate Migrate
Dokku doesn't handle plugin update. I made a pull request to dokku for that (dokku/dokku#669)
So, each time you update this plugin with git pull
, you need to call:
$ dokku redis:migrate
This plugin adds following environment variables to your app automatically:
- REDIS_URL
- REDIS_HOST
- REDIS_PORT
$ dokku redis:start # Server side
..or..
$ ssh dokku@server redis:start # Client side
$ dokku redis:stop # Server side
..or..
$ ssh dokku@server redis:stop # Client side
$ dokku redis:restart # Server side
..or..
$ ssh dokku@server redis:restart # Client side
$ dokku redis:dump > dump.rdb # Server side
..or..
$ ssh dokku@server redis:dump > dump.rdb # Client side
$ dokku redis:restore < dump.rdb # Server side
..or..
$ ssh dokku@server redis:restore < dump.rdb # Client side