lapinkoira
lapinkoira

Reputation: 8988

Specify rancher-compose.yml file same as it's done for docker-compose

It's possible to specify a rancher-compose.yml file for rancher-compose up command same as with docker-compose -f custom.yml

$ rancher-compose up --help
Usage: rancher-compose up [OPTIONS]

Bring all services up

Options:
   --pull, -p                         Before doing the upgrade do an image pull on all hosts that have the image already
   -d                                 Do not block and log
   --upgrade, -u, --recreate          Upgrade if service has changed
   --force-upgrade, --force-recreate  Upgrade regardless if service has changed
   --confirm-upgrade, -c              Confirm that the upgrade was success and delete old containers
   --rollback, -r                     Rollback to the previous deployed version
   --batch-size value                 Number of containers to upgrade at once (default: 2)
   --interval value                   Update interval in milliseconds (default: 1000)

I dont see it possible but maybe is there a way

Upvotes: 0

Views: 741

Answers (1)

mchawre
mchawre

Reputation: 12248

rancher-compose -f option is available.

Check this out.

I see its even available in older 1.x version of rancher.

NOTE: I guess -f option is not for rancher-compose up but for just rancher-compose command. But the end result is same as it allows to have alternate compose files.

Upvotes: 1

Related Questions