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…