Hacker News new | ask | show | jobs
by kamikaz1k 2418 days ago
Just wanted to mention (because I had encountered this problem only last weekend) `docker-compose run --service-ports... ` will expose ports.

From docs: "Run command with the service's ports enabled and mapped to the host." https://docs.docker.com/compose/reference/run/

Also, for anybody wondering about "synchronization" solutions, I have found dockerize to be very useful. https://github.com/jwilder/dockerize

1 comments

That's an awesome tip; thank you!