Open and close your dokku app's ports.
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-ports.git ports
This plugin provides hooks:
post-deploy: open ports for app
pre-delete: close ports for app
# Show all ports belonging to app dokku ports:list <app> # Close all ports belonging to app dokku ports:close <app> # Open all ports belonging to app dokku ports:open <app>