Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dokku-community/dokku-ufw

Open and close your dokku app's ports.
https://github.com/dokku-community/dokku-ufw

Last synced: 5 days ago
JSON representation

Open and close your dokku app's ports.

Awesome Lists containing this project

README

        

# dokku-ufw [![Build Status](https://img.shields.io/travis/dokku-community/dokku-ufw.svg?branch=master "Build Status")](https://travis-ci.org/josegonzalez/dokku-ufw)

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](https://launchpad.net/ufw) to manage your firewall.
* You have already set up UFW on your server.

## requirements

- dokku 0.4.0+
- docker 1.8.x

## installation

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

```shell
# Show all ports belonging to app
dokku ufw:list

# Close all ports belonging to app
dokku ufw:close

# Open all ports belonging to app
dokku ufw:open
```