Ask Your Question

Revision history [back]

This is because of differences in how the two operating systems handle environment variables. On macOS, the shell automatically expands variables marked with a dollar sign, while on Linux the variables are left as-is unless explicitly expanded using the 'export' command. Therefore, in order for the variables to be interpolated on both macOS and Linux, it is necessary to manually export them on Linux or to use the '$${VAR_NAME}' syntax in the docker-compose file.