wowu / docker-rollout

🚀 Zero Downtime Deployment for Docker Compose
https://github.com/Wowu/docker-rollout
MIT License
2.37k stars 66 forks source link

Add -p | --project-name support #16

Closed c4710n closed 1 year ago

c4710n commented 1 year ago

Specifying project name is necessary when using a bunch of compose files in a same directory.

This PR adds -p | --project-name support using the same syntax as docker compose.

c4710n commented 1 year ago

I found that Compose file supports a top-level name, then it is better to not add this option. (Make the compose file as the single source of truth)

wowu commented 1 year ago

You're right, this sounds like a better way.

If you need to set project name anyway, I suggest using environment variable COMPOSE_PROJECT_NAME.