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

Add auto_up option to exclude service from docker-compose up by default #7548

Closed

Commits on Jun 19, 2020

  1. Add auto_up to exclude service from docker-compose up

    This adds the new config option auto_up to services. When this is
    explicitly set to false the service will not be started when executing
    `docker-compose up` without service names (unless it is pulled in as a
    dependency of another service).
    If omitted auto_up defaults to true, i.e. start the service by default
    when docker-compose is called without explicit service names.
    
    This allows to define "optional" services in a docker-compose.yml which
    are only started when listed explicitly in the command line like
    docker-compose up optional_service
    
    This closes docker#6742, docker#1896 and many more reports requesting this feature.
    See also docker#3047
    
    Signed-off-by: Roman Anasal <roman.anasal@academyconsult.de>
    acran committed Jun 19, 2020
    Configuration menu
    Copy the full SHA
    3ef48f1 View commit details
    Browse the repository at this point in the history