signalfx / maestro-ng

Orchestration of Docker-based, multi-host environments
https://signalfx.com
Apache License 2.0
683 stars 83 forks source link

Is it possible to use user-defined docker bridge networks via maestro-ng? #219

Open petrkalina opened 3 years ago

petrkalina commented 3 years ago

see: https://docs.docker.com/network/bridge/#differences-between-user-defined-bridges-and-the-default-bridge

looking at: https://maestro-ng.readthedocs.io/en/main/environment.html?highlight=log_opt#service-instances I'm not sure how to configure this..

thanks!!

mpetazzoni commented 3 years ago

This isn't supported, and seem like it would require using the create_networking_config() function of docker-py to pass that to the networking_config parameter of the create_container() call (in maestro/plays/tasks.py#L220).

Do you think you could take a shot at making that change?