TIL
Docker Compose reads .env files by default
It is easy to miss that docker compose reads and honors environment variables set in aa file named .env without the user taking action.
docker
It is easy to miss that docker compose reads and honors environment variables set in aa file named .env without the user taking action.
I've always avoided overriding compose.yaml files locally until I found the `COMPOSE_FILE` environment variable.
You can heavily customize your IPython shell experience when using it inside Docker or in a Docker Compose project. Without your personal preferences annoying your teammates!
It's common to need a specific version of PostgreSQL installed for things like pg_dump in a Python docker project (which is often based on Debian). It's not hard, but it's easy to forget the exact steps, so I wanted to walk you through how to do it step by step.