Skip to main content

Env to Docker Compose

v1.0.3

Convert .env files to Docker Compose environment section format and vice versa.

Converts .env file contents to the Docker Compose environment: section format and vice versa — translates KEY=VALUE pairs to the YAML list format used in compose files.

How to use
  • Paste your .env file to convert it to the Docker Compose environment section.
  • Or paste a compose environment: block to extract it as a plain .env file.
  • Useful when synchronising environment configuration between local .env and compose files.