Skip to content
Open and close your dokku app's ports.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
subcommands
.editorconfig
.travis.yml
LICENSE.txt
Makefile
README.md
commands
config
functions
install
plugin.toml
post-deploy
pre-delete

README.md

dokku-ports Build Status

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.

requirements

  • dokku 0.4.0+
  • docker 1.8.x

installation

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

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 ports:list <app>

# Close all ports belonging to app
dokku ports:close <app>

# Open all ports belonging to app
dokku ports:open <app>
You can’t perform that action at this time.