Docker Run → Compose 변환기

docker run 명령을 docker-compose.yml 파일로 변환합니다.

docker run 명령
docker run 명령을 직접 붙여넣거나 이 기기에서 .txt 또는 .sh 파일을 가져오세요.
docker-compose.yml
입력에 유효한 docker run 명령이 포함되면 Compose 출력이 바로 업데이트됩니다.
services:
  api:
    image: node:20-alpine
    container_name: api
    command:
      - node
      - server.js
    environment:
      - NODE_ENV=production
      - API_KEY
    ports:
      - '8080:8080'
    volumes:
      - ./data:/data
    restart: unless-stopped
  redis:
    image: redis:7-alpine
    container_name: redis
    ports:
      - '6379:6379'

What It Does

Docker Run to Compose Converter converts one or more docker run commands into a docker-compose.yml file in the browser. You can inspect the generated YAML, copy it, or download it before moving it into your project.

When To Use It

Use it when you want to turn an ad hoc container command into a repeatable Compose service definition, or when you want to see how ports, volumes, environment variables, and resource flags map into Compose.

What To Expect

Common options such as ports, environment variables, restart policy, healthchecks, mounts, and resource limits are preserved. Unsupported or ambiguous flags are surfaced as warnings so you can review the output before using it.