use .env file with 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