palazzem / hanzo

Ansible orchestration to configure a development environment -
http://hanzo.sh
Other
23 stars 5 forks source link

Include `container-network` script to join sibling containers network #198

Closed palazzem closed 1 year ago

palazzem commented 1 year ago

Overview

In my current workflow, I am using containers as development boxes to achieve the same functionality offered by Codespaces or other alternatives. Containers started via Docker Compose are on a separate network. With this helper script, we can join other containers' networks to access their non-exposed ports.

Usage:

$ /usr/bin/container-network connect|disconnect