I have a docker-compose file which references an .env file like this:
version: '2.4'
services:
MyService:
#...more in here
env_file:
- staging.env
Now in my staging.env I have occurrences of German umlauts. So I saved that file as UTF-8 without BOM. I want to make sure that docker-compose will always pick up the correct encoding, for example if the staging environment uses (say) a different Windows version than my dev machine.
Will docker-compose always pick up utf-8 by default? Then this is fine as a solution for me. Otherwise, how can I specify explicitly in the docker-compose file that the encoding of the env file is UTF-8?