3 ms·
Is there a "proper" way to have per host configs? I have a setup where I need to set "hostname: <HOSTNAME>" depending on the system I'm on and right now I'm hav
by newman314 4y ago
Is there a "proper" way to have per host configs? I have a setup where I need to set "hostname: <HOSTNAME>" depending on the system I'm on and right now I'm having to resort to using "docker compose -f compose.<hostname>.yml up -d" where compose.<hostname>.yml extends compose.yml
- azeirah 4y agoIs there a reason why you wouldn't be able to use environment variables for this? Or am I misunderstanding your issue?
- deleted 4y ago[deleted]
- koprulusector 4y agodocker compose automatically looks for .env file with the format key=value and will auto populate variables in the docker-compose.yml with matches. Ex: docker-compose.yml: hostname: ${HOSTNAME} .env: HOSTNAME=foo.bar.com