Skip to content

Open and close your dokku app's ports.

License

Notifications You must be signed in to change notification settings

dokku-community/dokku-ufw

Repository files navigation

dokku-ufw Build Status

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.

requirements

  • dokku 0.4.0+
  • docker 1.8.x

installation

# on 0.4.x
dokku plugin:install https://github.com/josegonzalez/dokku-ufw.git ufw

hooks

This plugin provides hooks:

  • post-deploy: open ports for app
  • pre-delete: close ports for app

usage

# 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>