# compose.yaml — an Uncloud service definition. Lives in your repo root;
# `uc deploy` reads it.
#
# x-ports is Uncloud's Compose extension: publish the service on a public
# hostname over HTTPS. Uncloud's built-in Caddy obtains and renews the
# Let's Encrypt certificate automatically.
#
# Replace <app-name> and <app-host> (and the port if your app isn't on 80).

services:
  app:
    build: .                       # build from the Dockerfile in this repo
    image: <app-name>:latest       # Unregistry image name (local to the cluster)
    platform: linux/amd64          # your server's architecture (drop if it matches your build host)
    x-ports:
      - <app-host>:80/https        # e.g. docs.example.com:80/https
