use .env file in docker-compose code example
Example: docker compose env
# environment vars
environment:
RACK_ENV: development
environment:
- RACK_ENV=development
# environment vars
environment:
RACK_ENV: development
environment:
- RACK_ENV=development