buildkite-plugins / docker-compose-buildkite-plugin

🐳⚡️ Run build scripts, and build + push images, w/ Docker Compose
MIT License
172 stars 139 forks source link

Add support for exposing service ports on run #362

Closed trvrnrth closed 1 year ago

trvrnrth commented 1 year ago

This stems from a need for a step run in a container to have a port exposed that can be connected to from an external testing service whilst it is running.

By default docker compose run does not create the service ports so this adds a configuration to optionally to add the --service-ports option which enables the service ports and maps them to the host.

The default run configuration is not affected.

trvrnrth commented 1 year ago

@toote Thanks for the quick review. Updated as suggested.