CDNShark Documentation

Docker Hosting

← Back to Documentation

Deploy a Compose Project

Use a compose project when your app has several services, for example a web app, a worker and a database.

Steps

  1. Open your Docker host and click Deploy compose.
  2. Project name: lowercase letters, numbers, dashes and underscores, for example myapp.
  3. Paste your compose.yaml, or upload the file.
  4. .env (optional): one KEY=value per line. Compose reads it for ${VARIABLE} substitution, as it would next to your file.
  5. Tick Always pull the newest images to fetch new versions of tags such as latest. Otherwise images already on the host are reused.
  6. Click Deploy. Progress appears in the live log.

Example

services:
  web:
    image: nginx:alpine
    ports: ["8080:80"]
    restart: unless-stopped
  cache:
    image: valkey/valkey:8
    restart: unless-stopped

Only web publishes a port. cache is reachable from web by its service name, cache, and from nowhere else.

Update or remove a project

  • Update: deploy again with the same project name. Changed services are recreated, the rest keep running, and services you deleted from the file are removed.
  • Remove: use the remove button on the project's row in the Containers list. Its containers and networks are removed; its volumes are kept.

What compose files may contain

  • Privileged containers, bind mounts and devices are allowed: the host is yours.
  • network_mode: host is not allowed. Publish ports instead (ports: ["8080:80"]) and give them a public URL.
  • Each service counts towards your container limits, replicas included. See Docker Plan Limits and Billing.

Next: Make Your App Public with an HTTPS URL.