I’ve started exploring CircleCI 2.0 and would like to use it to start my PHP/Mysql/Elasticsearch application and run some unit and acceptance tests against it.
Now with quite some hassle I’ve gotten it to up the containers using docker-compose and remote docker, but now I’m not sure how to actually reach it. Since it’s not running on 127.0.0.1, how can I access the web- and mysql server? Maybe I’m going at this completely wrong and maybe what I want isn’t even possible, but I’ve gotten this far and now I would really like to get this to work.
Essentially my two questions are:
- What IP will the dockerized webserver be running on?
- Is there a better way to achieve what the result I’m looking for? My config seems… inefficient.
Here is my CircleCI config: