captain icon indicating copy to clipboard operation
captain copied to clipboard

use an env variable for the docker-compose file

Open Grummfy opened this issue 7 years ago • 5 comments

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 ...) ?

Grummfy avatar Dec 08 '17 09:12 Grummfy

Yeah I'm thinking of creating a ~/.captain/config file that allows some customization :)

jenssegers avatar Dec 08 '17 10:12 jenssegers

seems good to me perhaps like docker (for advanced version) with a captain config --set home path to home

Grummfy avatar Dec 08 '17 10:12 Grummfy

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.

nesl247 avatar Apr 11 '18 18:04 nesl247

for info : https://golang.org/pkg/os/#UserConfigDir or https://github.com/shibukawa/configdir if it's not working properly

Grummfy avatar May 24 '20 17:05 Grummfy

direnv is also not working with captain unfortunately

territory-sschneider avatar Jan 21 '21 07:01 territory-sschneider