4 ms·
docker 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
by koprulusector 4y ago
docker 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