Composerize is a utility that converts any given docker run command to its equivalent Docker Compose v2 configuration.
To run a container and expose the website at port 8080, run this command:
docker run -p "8080:8080" --rm icedream/composerizeOr use this Docker Compose YAML configuration (docker-compose.yml) file:
version: '2' services: composerize: image: icedream/composerize ports: - '8080:8080'