captain
captain copied to clipboard
use an env variable for the docker-compose file
Hi, I think we should have a way to use a .env, a config file in /etc or a variable from the environment to look at the docker-compose file. Perhaps could add the support for multiple one (find dir1 dir2 ...) ?
Yeah I'm thinking of creating a ~/.captain/config
file that allows some customization :)
seems good to me perhaps like docker (for advanced version) with a captain config --set home path to home
Preferably not ~/.captain/config
but $XDG_CONFIG_HOME/captain/config
or something. For systems that don't set XDG_CONFIG_HOME
, preferably use the default of ~/.config/captain/config
.
for info : https://golang.org/pkg/os/#UserConfigDir or https://github.com/shibukawa/configdir if it's not working properly
direnv
is also not working with captain unfortunately