Docker Compose projects

Host a Docker Compose project

If your project already runs with docker compose up, most of the work is done. Your agent maps each service to a container in vibe.json, and the stack runs here with the same names on a private network.

Paste this into your coding agent

Run curl -s https://vibecodedhost.com/deploy.md and follow its instructions to deploy this project.

Works in Claude Code, Codex, Cursor and anything else that can run a shell command.

The files

What your agent writes.

You do not have to write any of this. It is here so you can see how little there is, and check your agent's work if a deploy goes wrong.

With this manifest the app would be live at https://my-stack.vibecodedhost.app. The name is yours to choose, as long as no other app has it.

Every field of vibe.json, explained →

vibe.json
{
  "version": 1,
  "name": "my-stack",
  "containers": [
    {
      "name": "db",
      "image": "postgres:16-alpine",
      "port": 5432,
      "env": {
        "POSTGRES_USER": "app",
        "POSTGRES_PASSWORD": "app",
        "POSTGRES_DB": "app"
      },
      "volume": "/var/lib/postgresql/data",
      "memoryMb": 320
    },
    {
      "name": "cache",
      "image": "redis:7-alpine",
      "port": 6379,
      "volume": "/data",
      "memoryMb": 96
    },
    {
      "name": "web",
      "build": {
        "context": ".",
        "dockerfile": "Dockerfile"
      },
      "port": 3000,
      "public": true,
      "env": {
        "DATABASE_URL": "postgres://app:app@db:5432/app",
        "REDIS_URL": "redis://cache:6379"
      },
      "healthPath": "/"
    },
    {
      "name": "worker",
      "build": {
        "context": ".",
        "dockerfile": "Dockerfile.worker"
      },
      "env": {
        "DATABASE_URL": "postgres://app:app@db:5432/app",
        "REDIS_URL": "redis://cache:6379"
      },
      "memoryMb": 192
    }
  ]
}

Worth knowing

Docker Compose projects on Vibe Hosting

services become containers

Each service is one entry, with the same name, so connection strings like db:5432 keep working. An app can have up to five.

ports becomes port and public

There is no host port to map. Declare the port the process listens on and mark the container public to give it an HTTPS address. One port per container.

volumes becomes one volume path

Each container gets one persistent volume, mounted where you say. Bind mounts of host folders are not available; files your app needs go in the image.

image needs a tag

Stock images come from public registries and need an explicit tag, so postgres:16-alpine rather than postgres.

depends_on becomes order

Containers start in the order they are listed, so put databases and caches first. A service that needs another should still retry its first connection.

What does not carry over

Privileged mode, host networking, extra published ports and env_file. Environment values are written into vibe.json as plain strings.

Questions

Before you deploy.

Do I have to rewrite my Dockerfiles?

No. Each built container points at a Dockerfile inside your project, and they are built from your source as they are.

Can a background worker run without a public address?

Yes. Only one container of an app has to be public. Workers, queues and databases can stay private.

Built something else? Next.js, Node.js and Express, FastAPI, Flask, Django, React and Vite, Apps with Postgres, Apps with SQLite.

Your app could be online in a few minutes.

Copy the sentence, paste it into your agent, and read the address it gives you back. No account, no card, nothing to pay.

Paste this into your coding agent

Run curl -s https://vibecodedhost.com/deploy.md and follow its instructions to deploy this project.

Works in Claude Code, Codex, Cursor and anything else that can run a shell command.

Would you rather hold the key yourself?

Questions first, or stuck? Contact support and a person replies as soon as possible.