You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should be possible to differentiate between different operating systems inside a template file. My main motivation for this is that Docker for Mac cannot reliably access the host's external IP address but relies on a special hostname (docker.for.mac.localhost) which is usually mapped to 192.168.65.1.
Inside a docker-compose.yml I now want to be able to do something like this:
extra_hosts:
- "vault:{{ if eq .OS.Platform "darwin" }}192.168.65.1{{ else }}{{ .Network.ExternalIP }}{{ end }}"
The text was updated successfully, but these errors were encountered:
It should be possible to differentiate between different operating systems inside a template file. My main motivation for this is that Docker for Mac cannot reliably access the host's external IP address but relies on a special hostname (
docker.for.mac.localhost
) which is usually mapped to192.168.65.1
.Inside a docker-compose.yml I now want to be able to do something like this:
The text was updated successfully, but these errors were encountered: