API referenceSections

ComposeImport

ComposeImport object
  • applied boolean required
  • container Container optional

    A site's Windows container (ADR 0162). Experimental: not yet run on Windows.

  • result object required
    • web string required
    • warnings array<object> required
      • path string required
      • message string required
    • services array<object> required
      • name string required
      • image string required
      • registry string required
      • repository string required
      • tag string optional
      • digest string optional
      • entrypoint array<string> optional
      • command array<string> optional
      • cpu_milli integer required
      • memory_mb integer required
      • restart string required
      • user string optional
      • volumes array<ContainerVolume> optional
      • health ContainerHealth required
      • depends_on array<string> optional
      • env array<object> required
        • name string required
        • value string required
        • secret boolean required
      • port integer optional
      • isolation string optional
      • cpu_set boolean required
      • memory_set boolean required

Used by

POST/api/v1/tenants/{tid}/sites/{id}/container/compose 202Translate a docker-compose.yml for the site (ADR 0191); with apply, make it the site's manifest and deploy it (ADR 0192). Unsafe or unsupported keys are refused with their path (COMPOSE_UNSAFE, COMPOSE_UNSUPPORTED, COMPOSE_BUILD_UNSUPPORTED, COMPOSE_PORTS, COMPOSE_VARIABLE_UNSET, COMPOSE_LINUX_IMAGE, COMPOSE_INVALID)