# red5d/docker-autocompose

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/red5d-docker-autocompose).**

2,563 stars · 232 forks · Python

## Links

- GitHub: https://github.com/Red5d/docker-autocompose
- awesome-repositories: https://awesome-repositories.com/repository/red5d-docker-autocompose.md

## Topics

`automation` `compose` `docker` `docker-compose`

## Description

docker-autocompose is a tool that converts running Docker containers into YAML configuration files for reproduction and deployment. It functions as a container configuration exporter and YAML orchestration utility, harvesting runtime variables, volume mounts, and port mappings from active containers.

The project enables the generation of Docker Compose definitions by merging multiple container identifiers into single unified configuration files. This process allows for the recovery of undocumented container setups and the migration of manual deployments into version-controlled infrastructure as code.

The utility includes a runtime inspection engine that queries the host daemon to translate ephemeral container states and metadata into structured orchestration files.

## Tags

### DevOps & Infrastructure

- [Docker Compose Generators](https://awesome-repositories.com/f/devops-infrastructure/docker-compose-generators.md) — Converts active runtime container settings into structured YAML definitions for environment reproduction. ([source](https://github.com/Red5d/docker-autocompose/blob/master/Dockerfile))
- [Container Configuration Exporters](https://awesome-repositories.com/f/devops-infrastructure/container-configuration-exporters.md) — Harvests runtime variables, volume mounts, and port mappings from active Docker containers for export.
- [Container Metadata Harvesters](https://awesome-repositories.com/f/devops-infrastructure/container-metadata-harvesters.md) — Extracts port mappings and mount points directly from the Docker daemon to ensure configuration parity.
- [Container Orchestration Configuration](https://awesome-repositories.com/f/devops-infrastructure/container-orchestration-configuration.md) — Merges multiple container identifiers into a single unified configuration file for orchestrated deployments. ([source](https://github.com/Red5d/docker-autocompose#readme))
- [Docker Compose Generators](https://awesome-repositories.com/f/devops-infrastructure/container-orchestration/container-runtimes/runtime-configuration-interfaces/docker-socket-orchestrators/docker-target-configurators/docker-container-deployments/docker-compose-generators.md) — Converts running Docker containers into YAML configuration files for reproduction and deployment.
- [Docker Container Orchestrators](https://awesome-repositories.com/f/devops-infrastructure/container-orchestration/container-runtimes/runtime-configuration-interfaces/docker-socket-orchestrators/docker-target-configurators/docker-container-orchestrators.md) — Merges multiple container identifiers into single unified configuration files for orchestrated deployments.
- [Container Property Translation](https://awesome-repositories.com/f/devops-infrastructure/container-property-translation.md) — Translates ephemeral container runtime properties into a persistent orchestration format.
- [Runtime Configuration Extractors](https://awesome-repositories.com/f/devops-infrastructure/container-storage-persistence/container-network-and-volume-configuration/runtime-configuration-extractors.md) — Harvests runtime variables, volume mounts, and port mappings from existing containers to create configuration files. ([source](https://github.com/Red5d/docker-autocompose#readme))
- [Compose Definition Generators](https://awesome-repositories.com/f/devops-infrastructure/kubernetes-manifest-management/compose-definition-generators.md) — Converts active container runtime settings into YAML files to reproduce existing environments as structured compose definitions.
- [Orchestration Templates](https://awesome-repositories.com/f/devops-infrastructure/automation-orchestration/task-execution-frameworks/automation-frameworks/config-templating/configuration-template-management/automation-variable-definitions/variable-definition-file-generators/orchestration-templates.md) — Builds reproducible deployment files by mapping current runtime variables to static definitions.
- [Infrastructure as Code](https://awesome-repositories.com/f/devops-infrastructure/infrastructure-as-code.md) — Turns manual container deployments into version-controlled configuration files for reliable orchestration.

### System Administration & Monitoring

- [Container Runtimes](https://awesome-repositories.com/f/system-administration-monitoring/runtime-state-inspection/container-runtimes.md) — Queries the Docker API to retrieve current networking and volume configurations from active containers.
- [Container Environment Recovery](https://awesome-repositories.com/f/system-administration-monitoring/container-environment-recovery.md) — Recreates lost or undocumented container setups by harvesting the current state of running instances into portable files.

### Software Engineering & Architecture

- [YAML Configuration Files](https://awesome-repositories.com/f/software-engineering-architecture/application-lifecycle-management/configuration-management/configuration-formats-and-schemas/yaml-configuration-files.md) — Maps raw JSON container metadata into structured YAML configuration files for Docker Compose.
