@gunnard | github.com/gunnard | gunnard.org

LonghornPHP 2022

Docker

for Dev. Teams

speaker: Gunnard Engebreth

What is docker?

What is a development environment?

Production

Web Server

Apache, Nginx, whatever

Database

Mysql, MirandaDB, Postgres, CouchDB ...

Language

PHP (Laravel, symphony, Yii, CakePHP, SlimpHP), Node, React, C, GO, Python ...

development

Web Server

Apache, Nginx, whatever

Database

Mysql, MirandaDB, Postgres, CouchDB ...

Language

PHP (Laravel, symphony, Yii, CakePHP, SlimpHP), Node, React, C, GO, Python ...

How to docker

Docker Containers are the ready applications created from Docker Images.  They hold the entire package needed to run the application.

Images are the building blocks of a Docker Container. Images can be pulled from Dockerhub or created by "building"

Volumes are defined to store persistant data (i.e. DB) or connect to host data (i.e. /var/www)

Docker networking allows communication between containers and also with the docker hosts

Docker-compose.yml

docker-compose.yml loads containers based off of each specified dockerfile

dockerfile

Dockerfile (php)

Docker-compose.yml

docker-compose.yml

Docker - LonghornPHP2022

By Gunnard Engebreth

Docker - LonghornPHP2022

  • 48