Linux VMs with a choice of regions and sizes for self-hosted services.
Audit Rules
Image tag
Choose an explicit version tag or digest. A missing tag and :latest can resolve to a different image on the next pull.
Environment secrets
Use ${VAR} for passwords, tokens, and keys. The audit flags literal values on common secret variable names.
Restart policy
Set restart: unless-stopped for long-running services that should come back after a host reboot. One-off jobs can use restart: "no".
Published database port
A mapping such as 5432:5432 publishes on all host interfaces. Bind to 127.0.0.1 for host-only access or omit the mapping for internal access.
FAQ
How do I convert docker run to Docker Compose?
Paste the command into the docker run → Compose tab, then copy or download compose.yaml. In its directory, run docker compose config to validate it and docker compose up -d to start it.
Does compose.yaml need a version field?
No. Docker Compose uses the current Compose Specification. Start with services and declare named volumes and networks at the top level when you use them.
How do I pass secrets to Docker Compose?
Use ${VAR} in compose.yaml and supply the value from your shell or a local .env file. Keep .env out of version control. Commit .env.example with empty values to document what is required.
How do I keep a database port private?
For host-only access, bind it to loopback, for example 127.0.0.1:5432:5432. For access only from other Compose services, omit ports and connect by service name.
How does Docker Compose request all GPUs?
Use gpus: all with Docker Compose 2.30.0 or newer and a GPU-capable Docker host. The converter generates it from docker run --gpus all.