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