Docker Compose file · Environment and secrets
Set environment variables
Set variables inline, as a list or a map.
environment:
NODE_ENV: production
LOG_LEVEL: info
Official Docker Compose file documentation
More environment and secrets commands
All environment and secrets commands · Docker Compose file cheatsheet