hostctl
sync docker-compose
Sync your docker-compose containers IPs with a profile.
Reads from a docker-compose.yml file the list of containers and add names and IPs to a profile in your hosts file.
hostctl sync docker-compose [profile] [flags]
--compose-file string path to docker-compose.yml
-d, --domain string domain where your docker containers will be added (default "loc")
-h, --help help for docker-compose
--network string Filter containers from a specific network
--prefix keep project name prefix from domain name
--project-name string docker compose project name
-c, --column strings Column names to show on lists. comma separated
--host-file string Hosts file path (default "/etc/hosts")
--no-color force colorless output
-o, --out string Output type (table|raw|markdown|json) (default "table")
-q, --quiet Run command without output
--raw Output without borders (same as -o raw)
-w, --wait duration Enables a profile for a specific amount of time (default -1ns)
Auto generated by spf13/cobra
Last updated by Sven Luijten on August 20, 2023 at 10:27 +0200
Content