Attach docker's network defined in the the host's /home/dokku/<APP>/DOKKU_CONNECT_NETWORK file after the app is deployed.
- dokku 0.4.0+
- docker 1.6.x
# on 0.4.x
dokku plugin:install https://github.com/ithouse/dokku-connect-network.git connect-networkTo use, create a DOKKU_CONNECT_NETWORK file in /home/dokku/<APP>. For instance, if we have an application called lolipop:
touch /home/dokku/lolipop/DOKKU_CONNECT_NETWORK
chown dokku:dokku /home/dokku/lolipop/DOKKU_CONNECT_NETWORK
echo -n "rednet" > /home/dokku/lolipop/DOKKU_CONNECT_NETWORKNext, Create the network that you would like to attach to your containers.:
docker network create rednetOnce that is done, any deploy should automatically attach network to your containers.