Docker tutorial at PHP conference Asia 2016
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
advanced
src
1.txt
2.txt
3.txt
4.txt
5.txt
6.txt
7.txt
8.txt
9.txt
Dockerfile
README.md

README.md

How to Dockerize a PHP application

Using abiosoft/caddy:php

PHP tutorial

First please install Docker and we assume you have a bash shell CLI!

Following contains tutorial steps to help familiarise yourself with running and building Docker images.

Lessons

  • 1.txt - how to run a Docker container. If you don't have it, it should automatically pull
  • 2.txt - we need to specify a host to container port binding, else it won't be accessible
  • 3.txt - you can alter the host port
  • 4.txt - you can introduce new environment variables
  • 5.txt - you can shell into a running container
  • 6.txt - you can bind directories between your host and the container
  • 7.txt - lets put some examples together
  • 8.txt - lets put our source into the image by creating our own Dockerfile
  • 9.txt - lets run an "official image"