A plugin for Intellij IDEs.
Converts docker run
commands into yaml format when pasted into docker-compose.yml
file.
Works like composerize.com web converter.
-
Copy your
docker run
command text, for example:docker run --name some-postgres -e POSTGRES_PASSWORD_FILE=/run/secrets/postgres-passwd -d postgres
-
Paste it into your
docker-compose.yml
file. You will get something like this:version: 3 services: some-postgres: image: postgres environment: - POSTGRES_PASSWORD_FILE=/run/secrets/postgres-passwd container_name: some-postgres
-
Using the IDE built-in plugin system:
Settings/Preferences > Plugins > Marketplace > Search for "Docker Run Command to Compose Converter" > Install
-
Manually:
Download the latest release and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...
Plugin based on the IntelliJ Platform Plugin Template.