Add selenium acceptance tests to codeception with yii2 on docker-compose setup to run seamlessly with test settings

Here we will discuss steps needed to add selenium acceptance tests with codeception to existing yii2 project with docker-compose setup that uses nginx as the http server with FCGI. The problem with acceptance tests is that the testing browser will access the app through the main files, not through the testing files, as it is…

Custom php.ini to the docker library php using docker-compose config

An approach that adds additional ini files to be parsed by php by just adding two lines to your docker-compose.yml. It’s a convenient practice for small projects without ad-hoc tailoring to use prebuilt images from docker hub. Sometimes we need to change some php.ini settings for a php container, for example, increasing upload_max_filesize parameter. The…

docker-compose logs sorted by time

Trying to understand what’s happening inside your code running in multiple docker-compose containers by reading logs could be a terrible idea if log lines are outputted in a random manner. Which is true at least for docker-compose version 1.8.0, build 94f7016. This could be simply checked by running the following command several times. 1docker-compose logs|head Here…