Open and close your dokku app's ports via ufw.
Sometimes you just can't use the usual virtual host-based configuration of dokku, thus needing another way to access the ports used by your applications. This plugin assumes two things:
- You are using UFW to manage your firewall.
- You have already set up UFW on your server.
- dokku 0.4.0+
- docker 1.8.x
# on 0.4.x
dokku plugin:install https://github.com/josegonzalez/dokku-ufw.git ufw
This plugin provides hooks:
post-deploy
: open ports for apppre-delete
: close ports for app
# Show all ports belonging to app
dokku ufw:list <app>
# Close all ports belonging to app
dokku ufw:close <app>
# Open all ports belonging to app
dokku ufw:open <app>