/webdock

Minimalistic Docker starter for web applications.

Primary LanguageMakefileThe UnlicenseUnlicense

WebDock

WebDock is a minimalistic Docker starter for web applications. Project is designed to work with PHP micro services and SPA web clients, but it is also great to work with PHP MPA.

Table of contents

  1. Getting started
  2. Useful links
  3. Useful Docker images
  4. PHP Debugging

Getting started

These instructions will help you use any repository from this project.

Requirements

To start working with WebDock repositories you have to install Docker and Docker Compose. This is how you can check if it is properly installed:

$ docker --version; \
  docker run --rm hello-world; \
  docker-compose --version

Hosts

Check Docker IP with ifconfig docker0 command
(docker-machine ip if you are working with Docker Machine).

$ ifconfig docker0
docker0   Link encap:Ethernet  HWaddr 02:42:be:e6:83:00  
          inet addr:172.17.0.1  Bcast:0.0.0.0  Mask:255.255.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

Add 172.17.0.1 docker.localhost www.docker.localhost line to the /etc/hosts file
(C:\Windows\System32\Drivers\etc\hosts file for Windows).

Copy files

Copy any repository from this project to your own Git repository and follow it's readme file.

Images registry

Note that following images names are used only to visualise the relationships between repositories.

damlys/webdock-web-assets-builder
damlys/webdock-web-client
damlys/webdock-web-client-foundation
damlys/webdock-php-web-server
damlys/webdock-php-web-server-foundation

You should change them immediately after repositories clone.