Download the PHP package shipping-docker/vessel without Composer
On this page you can find all versions of the php package shipping-docker/vessel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package vessel
Vessel
Up and running with small Docker dev environments.
Documentation
Full documentation can be found at https://vessel.shippingdocker.com.
Install
Vessel is just a small set of files that sets up a local Docker-based dev environment per project. There is nothing to install globally, except Docker itself!
This is all there is to using it:
Head to http://localhost
in your browser and see your Laravel site!
Lumen
If you're using Lumen, you'll need to copy the Vessel files over manually instead of using php artisan vendor:publish
. You can do this with this command:
cp -R vendor/shipping-docker/vessel/docker-files/{vessel,docker-compose.yml,docker} .
and then you'll be able to install and continue as normal.
Multiple Environments
Vessel attempts to bind to port 80 and 3306 on your machine, so you can simply go to http://localhost
in your browser.
However, if you run more than one instance of Vessel, you'll get an error when starting it; Each port can only be used once. To get around this, use a different port per project by setting the APP_PORT
and MYSQL_PORT
environment variables in one of two ways:
Within the .env
file:
Or when starting Vessel:
Then you can view your project at http://localhost:8080
and access your database locally from port 33060
;
Sequel Pro
Since we bind the MySQL to port 3306
, SequelPro can access the database directly.
The password for user root
is set by environment variable DB_PASSWORD
from within the .env
file.
The port setting must match the
MYSQL_PORT
environment variable, which defaults to3306
.
Common Commands
Here's a list of built-in helpers you can use. Any command not defined in the vessel
script will default to being passed to the docker-compose
command. If not command is used, it will run docker-compose ps
to list the running containers for this environment.
Show Vessel Version or Help
Starting and Stopping Vessel
Development
Docker Commands
As mentioned, anything not recognized as a built-in command will be used as an argument for the docker-compose
command. Here's a few handy tricks:
What's included?
The aim of this project is simplicity. It includes:
How does this work?
If you're unfamiliar with Docker, try out this Docker in Development course, which explains important topics in how this is put together.
If you want to see how this workflow was developed, check out Shipping Docker and signup for the free course module which explains building this Docker workflow.
Supported Systems
Vessel requires Docker, and currently only works on Windows, Mac and Linux.
Windows requires running Hyper-V. Using Git Bash (MINGW64) and WSL are supported. Native Windows is still under development.
Mac | Linux | Windows |
---|---|---|
Install Docker on Mac | Install Docker on Debian | Install Docker on Windows |
Install Docker on Ubuntu | ||
Install Docker on CentOS |