Docker Container Hosting on CloudPloy
CloudPloy does not deploy WordPress yet. It deploys Node, Python, PHP and Laravel, and more, from git.
Every app on CloudPloy runs in Docker containers on a server you own: an EC2 instance CloudPloy launches in your AWS account, or a server you connect over SSH. CloudPloy builds the image, writes the Docker Compose file and puts Traefik in front of the app for HTTPS. This page says what that means for your app.
How the image is built
| Your app | How CloudPloy builds it |
|---|---|
| Laravel, Symfony or plain PHP | A CloudPloy Dockerfile on webdevops/php-nginx:8.4-alpine (pinned by digest): PHP 8.4 with nginx, Composer installs without dev packages, and when the repository has a package.json it runs npm run build for your assets. |
| A repository with its own Dockerfile | Your Dockerfile, as it is. |
| Node.js, Next.js, Nuxt, Astro, Rails, Python and others | Nixpacks, which detects the language and builds an image without a Dockerfile. |
CloudPloy writes its own docker-compose.yml for the app. A compose file in your repository is not used.
Environment variables
Variables you set in the console are stored by CloudPloy (secret ones encrypted) and written to the app's .env file on your server at each deploy, with file permissions that keep other users on the server out. They never go into the image. Change one, then deploy to apply it.
Databases next to your app
CloudPloy can run PostgreSQL, MySQL or Redis (Valkey) in its own container on the same server, on a private Docker network that only the apps you link can reach. A linked app gets DATABASE_URL or REDIS_URL on its next deploy, and Laravel apps also get their DB_* or REDIS_* values. Backups go to an S3 bucket in your own AWS account.
Deploys without downtime
On a deploy, new containers start next to the running ones. CloudPloy checks each new container from the inside every few seconds until the app answers on its port, then sends traffic to it and drains the old containers. If the new version never becomes healthy, the old one keeps serving. For a Laravel app with "Run migrations on deploy" on (the default for new Laravel apps), php artisan migrate --force runs in a one-off container before the release.
Files inside the container
Containers are replaced on every deploy, so files an app writes inside its container do not survive the next one. Keep uploads and other lasting files in object storage such as S3, or in a database.
Copies and logs
- An app can run as 1 to 10 copies on its server, within your plan.
- The console shows the build and release log of each deployment, and the last lines your running containers print.
Frequently Asked Questions
Do I need Docker knowledge to use CloudPloy?
No. CloudPloy detects the framework and builds the image. Knowing Docker helps only if you want to bring your own Dockerfile.
Can I use Docker Compose?
Not your own compose file: CloudPloy writes the compose file for each app. Run supporting services such as PostgreSQL, MySQL or Redis as CloudPloy databases, or use a managed service and set its URL as an environment variable.
Can I deploy a pre-built image from a registry?
Not yet. CloudPloy builds the image from your Git repository on each deploy.
For step-by-step examples, read the Docker deployment tutorial, or contact CloudPloy support.