WebDock is a minimalistic Docker starter for web applications. Project is designed to build PHP micro services and SPA apps, but it can be prepared for PHP MPA in few minutes.
These instructions will help you run any service from this project.
To start working with WebDock's services you have to install this software:
- Docker Engine
- Docker Compose
- Docker Machine (for MacOS and Windows only)
- Docker Machine NFS is recommended to speed up transferring files between Docker Machine and MacOS
This is how you can check if it is installed:
$ docker --version
Docker version 17.05.0-ce, build 89658be
$ docker-compose --version
docker-compose version 1.9.0-rc3, build fcd38d3
$ docker-machine --version
...
Check Docker IP with ifconfig docker0
command,
or 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 any service from this project to your own Git repository and follow it's readme file.
Docker Hub is an official registry for Docker images.
Create own repositories for the following images and replace them in your projects.
damlys/webdock-php-web-server
damlys/webdock-php-web-server-foundation
damlys/webdock-web-assets-builder
damlys/webdock-web-client
damlys/webdock-web-client-foundation
- Dockerfile reference
- Best practices for writing Dockerfiles
- Repositories on Docker Hub
- Compose file version 2 reference
- Compose file version 3 reference
- Environment variables in Compose