Skip to content

Open more ports

Olivier Berthonneau edited this page Jul 17, 2016 · 3 revisions

Now you have a dedicated docker-compose-dev.yml for your development environment, you can open your application a little more.

Let's say you have a database. In production you will not open it to the outside world and will only allow your backend to talk to it. Well, in development, maybe you would like your contributors to have their tools on their host system that could access the database as if it was localhost.

Just add a new port configuration for your service in docker-compose-dev.yml.

More generally, you can really add any special configuration in this file.

If you are looking for even more network flexibility, take a look at this page: Access your services on localhost