Zum Inhalt springen

🐳 <code>.env</code> → <code>docker-compose</code> Umgebungsvariablen

Fügen Sie Inhalte im .env-Dateiformat ein und konvertieren Sie sie in den environment-Block von docker-compose.yml. Unterstützt sowohl Listenformat als auch Wörterbuchformat.

100% Free No signup Browser-only 5 languages Dark mode
🔒 Datenschutzgarantie: Der Inhalt von .env (einschließlich API-Schlüssel und Passwörter) wird nicht an den Server gesendet. Alle Konvertierungen finden im Browser statt.

🔗 Verwandte Tools

📖 Wie man es benutzt

  1. 1
    Paste your .env
    Paste your .env file contents into the left input. Lines starting with # are treated as comments.
  2. 2
    Choose output format
    Pick list ( - KEY=value ) or dict ( KEY: value ) format, and optionally rewrite secrets to ${VAR} references.
  3. 3
    Copy the result
    The converted block appears on the right. Copy it and paste it under the environment key of your docker-compose.yml.

❓ Häufig gestellte Fragen

Which keys trigger the secret warning?
Keys whose name includes PASSWORD, SECRET, KEY, TOKEN, API_KEY, or PRIVATE trigger the warning.
How are quotes and escapes handled?
Single- or double-quoted values are unquoted. When a value contains YAML-special characters such as : or #, the output is re-quoted automatically.
Does it support variable expansion like $OTHER?
Values are written as-is. docker-compose itself resolves ${VAR} references at runtime, so no literal expansion is performed here.
🐛 Sind Sie auf ein Problem mit diesem Tool gestoßen?

Vollständig kostenlos und ohne Registrierung. Auch Reproduktionsschritte sind ausreichend. Eingegangene Berichte werden direkt an die Betreiber weitergeleitet und dienen als Referenz für Korrektionen.

※ Um Probleme zu reproduzieren, werden Browser-Informationen (UA / Bildschirmgröße / Sprache / URL) automatisch gesendet