Share and learn in the Docker community.
Seems docker stack deploy does not support using a .env file.
docker stack deploy
.env
One discussion, some workarounds.