Download the PHP package gundars/docker-devbox without Composer
On this page you can find all versions of the php package gundars/docker-devbox. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download gundars/docker-devbox
More information about gundars/docker-devbox
Files in gundars/docker-devbox
Download gundars/docker-devbox
More information about gundars/docker-devbox
Files in gundars/docker-devbox
Vendor gundars
Package docker-devbox
Short Description Docker Devbox PHP 7.1 fpm with Nginx 1.10.3 OR Apache 2.4 on Ubuntu, Redis, Mail server, Blackfire profiler
License DWTFYW to public license
Homepage https://github.com/Gundars/docker-devbox
Package docker-devbox
Short Description Docker Devbox PHP 7.1 fpm with Nginx 1.10.3 OR Apache 2.4 on Ubuntu, Redis, Mail server, Blackfire profiler
License DWTFYW to public license
Homepage https://github.com/Gundars/docker-devbox
Please rate this library. Is it a good library?
Informations about the package docker-devbox
Intitial Setup
- Install Virtualbox, Vagrant, Git Bash
- Add
192.168.66.66 devbox.localto hosts file - Git clone this repo
- copy
example.envto.env - execute
vagrant up --provision - Check if
http://devbox.localandhttp://devbox.local:8080works - Create project in PHPStorm or worse IDE, source is ./www directory on Windows PC
- ./www, ./logs, ./ as /vagrant dirs 3-way sync to the Docker containers
Daily Usage
vagrant up- boots box, creates Docker containers- PHP APIs Nginx at http://devbox.local
- PHP APIs Apache2 at http://devbox.local:8080
- Mailhog at http://devbox.local:8025
- Mailhog SMTP at http://devbox.local:1025
- Redis at http://devbox.local:6379
Additional Daily Usage
vagrant reload- restarts box, re-creates Docker containersvagrant suspend- copies box to memory and suspendsvagrant halt- shuts down boxvagrant halt+vagrant destroy devbox+vagrant up- hard-reset everythingsudo docker-cleanup && cd /vagrant && sudo docker-compose up -din guest box, to fully reset docker containers
Notes:
- www, logs, scripts 3-way sync: ./www directory rsyncs to /var/www of vagrant box, which rsyncs to /var/www in web container
- Pass files to container with ./www directory or /vagrant directory
- use
docker-cleanupcommand to find and destroy everything Docker related within the vagrant box - access console of vagrant box via putty (ubuntu:ubuntu) or
vagrant sshcli command - once in Vagrant's console, access console of a single container:
sudo docker pswill output details including ID of f.i. web containersudo docker exec -i -t CONTAINER_ID_HERE /bin/bashwill ssh into container- OR by name directly:
- to execute command not shell, remove
-ioption from previous command
- mailserver accepts any values, such as:
<?php mail("recipient", "subject", "message", "From: Sender"); - if
vagrant upfails with "Can't locate /vagrant dir in guest box." execvagrant reload - if
vagrant upfails with "The machine is in the 'unknown' state. " execvagrant halt - if
vagrant upfails with "Temporary failure resolving 'archive.ubuntu.com'" disable and enable network adapters in Windows host settings
All versions of docker-devbox with dependencies
PHP Build Version
Package Version
No informations.
The package gundars/docker-devbox contains the following files
Loading the files please wait ...