Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable docker-compose to scale app. #56

Merged
merged 1 commit into from
Dec 28, 2015
Merged

Conversation

dobbs
Copy link
Contributor

@dobbs dobbs commented Dec 26, 2015

The previous docker-compose-local.yml specified the host port for the app service. As a result, running docker-compose scale app=3 would fail because the second and third containers would attempt to bind to the same port on the docker host. By removing the host portion of the port configuration, docker-compose chooses random port numbers for the host when scaling the app.
https://docs.docker.com/compose/compose-file/#ports

The previous docker-compose-local.yml specified the host port for the app service.  As a result, running `docker-compose scale app=3` would fail because the second and third containers would attempt to bind to the same port on the docker host.  By removing the host portion of the port configuration, docker-compose chooses random port numbers for the host when scaling the app.
https://docs.docker.com/compose/compose-file/#ports
@tgross
Copy link
Contributor

tgross commented Dec 28, 2015

LGTM. Thanks for the catch, @dobbs

tgross added a commit that referenced this pull request Dec 28, 2015
Enable docker-compose to scale app.
@tgross tgross merged commit b018850 into TritonDataCenter:master Dec 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants