Docker
Environment variables
Docker compose can use your .env
file. The path is relative to the docker-compose.yml file.
version: '3.8'
services:
web:
env_file:
- .env
Docker compose can use your .env
file. The path is relative to the docker-compose.yml file.
version: '3.8'
services:
web:
env_file:
- .env