want to have a docker image with nginx and phpfpm that you can spin up passing it domainname and port as well as db credentials (mysql should not be part of docker image itsself)
this should be build tested and deployed in a build job after each release
Use case 1 quick test
pull Image
run container
count things
Use case 2 docker deploy
pull Image with hook
run with arguments
Use in own infrastructure
hence there should be a dockerfile in this repo that on build of tags produces a single image with nginx/apache + php and mysql installed that can be run out of the box but can take env vars to enable us to use mysql outside of docker (or map an appropriate volume for persistency) and also override vhost/port of webserver.
make sure we have all of dockers benefits https://runnable.com/docker/php/advantages-of-docker-with-php-apps
want to have a docker image with nginx and phpfpm that you can spin up passing it domainname and port as well as db credentials (mysql should not be part of docker image itsself)
this should be build tested and deployed in a build job after each release
Use case 1 quick test pull Image run container count things
Use case 2 docker deploy pull Image with hook run with arguments Use in own infrastructure
hence there should be a dockerfile in this repo that on build of tags produces a single image with nginx/apache + php and mysql installed that can be run out of the box but can take env vars to enable us to use mysql outside of docker (or map an appropriate volume for persistency) and also override vhost/port of webserver.
e.g. https://github.com/GoogleCloudPlatform/php-docker/blob/master/php-nginx/Dockerfile
or will we try to use https://docs.docker.com/compose/production/