Download the PHP package anik/portner without Composer
On this page you can find all versions of the php package anik/portner. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package portner
Short Description Portner is a PHP CLI application to store, suggest the ports you're going to use for your docker.
License MIT
Informations about the package portner
Portner
Portner is an application that lets you keep track of the ports you are going to assign to a docker container. It is not always possible to remember on which port the application is running. You may try to reassign the port to another application. Here portner may help you in that case. If you start an application you can get the suggestion of ports you want to assign to your services. Later you can search with it.
Installation
To install the portner application open your terminal
- Download portner:
wget https://ssi-anik.github.io/portner/downloads/portner.phar. - Check if the md5sum is same or not
e3b628f1103a245d8f048ccda68e66a6. - Give the file executable permission:
sudo chmod +x portner.phar. - Move the file to
/usr/local/bindirectory so that it can be accessed globally.sudo mv portner.phar /usr/local/bin/portner.
Service
Services are the docker service names like nginx, php, mysql
- Add service:
Add new service with the
portner service:addorportner sacommand--nameis required.--portis required.--start-expose-atoptional if the port value is > 1024. Example:portner service:add --name=elasticsearch --port=9200 --start-expose-at=9201
-
List services: To list the available services use
portner service:listorportner sl - Remove service:
To remove a service, you can use
portner service:removeorportner sr--nameis optional. If omitted then it will show the services you want to remove. Answer with comma seperated index number.
Application
Applications are the web application or any other application you will be creating. Like, blog, e-commerce applications.
- Add application:
To add an application you'll have to use
portner appliation:addorportner aacommand.- The
--nameis a must. --servicesis an optional. You can provide multiple comma separated list of available services. If omitted then it will prompt you a question to choose from the available services. It will then suggest you some ports. If you want to overwrite the suggested port just write it. And finally save it.
- The
-
Application list To view the list of application you can use
portner application:listorportner al -
Search application To search an application, you can use
portner application:searchorportner as--name, to search in name.--service, to search in services used.--port, to search any specific port.
- Remove application
To remove an application, just type in your terminal:
portner application:removeorportner ar--nameis an optional. If omitted it will show the available application list to select by index. In both cases you can supply multiple names.