Project: https://github.com/progrium/dokku
cd /var/lib/dokku-alt/plugins
git clone https://github.com/maccman/dokku-alt-memcached memcached
dokku plugins-install
$ dokku help
memcached:create <app> Create a Memcache container
memcached:delete <app> Delete specified Memcache container
memcached:info <app> Display container informations
memcached:link <app> <rd> Link an app to a Memcache container
memcached:logs <app> Display last logs from Memcache contain
Create a new Container:
$ dokku memcached:create foo # Server side
$ ssh dokku@server memcached:create foo # Client side
-----> Memcache container created: memcached/foo
Host: 172.16.0.104
Public port: 49187
Deploy your app with the same name (client side):
$ git remote add dokku git@server:foo
$ git push dokku master
Counting objects: 155, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (70/70), done.
Writing objects: 100% (155/155), 22.44 KiB | 0 bytes/s, done.
Total 155 (delta 92), reused 131 (delta 80)
remote: -----> Building foo ...
remote: Ruby/Rack app detected
remote: -----> Using Ruby version: ruby-2.0.0
... blah blah blah ...
remote: -----> Deploying foo ...
remote:
remote: -----> App foo linked to memcached/foo container
remote: MEMCACHE_IP=172.16.0.104
remote:
remote: -----> Deploy complete!
remote: -----> Cleaning up ...
remote: -----> Cleanup complete!
remote: =====> Application deployed:
remote: http://foo.server
Deleting containers:
dokku memcached:delete foo
Linking an app to a specific container:
dokku memcached:link foo bar
Memcache logs (per container):
dokku memcached:logs foo
Memcache information:
dokku memcached:info foo