Docs/Candor Deploy

Builds and configuration

What is detected from your repository, how Dockerfiles and docker compose files are used, and how to set the port, environment variables and persistent storage.

This page covers what happens between choosing a repository and a running container, and the settings you control. If you have not deployed anything yet, start with the Quickstart.

How your repository is built

The dashboard reads your repository and decides how to build it, in this order:

  1. A compose file at the root (docker-compose.yml, docker-compose.yaml, compose.yml or compose.yaml): each service in it is built or pulled, and the project becomes a multi-service project.
  2. A Dockerfile at the root: that is built. It takes priority over framework detection.
  3. Otherwise the framework is detected and a build is generated for it.

What was detected is shown on the Config screen before the first build, and you can change it there.

Frameworks that are detected

LanguageDetected
JavaScript and TypeScriptNext.js, Nuxt, SvelteKit, Astro, Vite, Angular, Gatsby, Remix, TanStack Start, Create React App, Vue, Farm.js, Express, Fastify, Hono, NestJS, Koa, AdonisJS, Elysia, and plain Node.js
PythonDjango, Flask, FastAPI, and plain Python
GoGin, Fiber, Echo, and plain Go
RustActix, Axum, Rocket, and plain Rust
RubyRails, Sinatra
PHPLaravel, Symfony
JavaSpring Boot, Quarkus
C#.NET, Blazor
ElixirPhoenix
StaticA site with an index.html, or a framework that builds to static files

If your stack is not listed, add a Dockerfile. Anything that builds into a container image and listens on a port will run.

Monorepos

Workspaces are recognised (npm, pnpm, Yarn and Bun workspaces, Cargo, go.work, Maven and Nx). The Config screen shows one card per app in the repository; choose the one you are deploying and check its working directory.

A compose file somewhere else

If your compose file is not at the root or has another name, enter its path in Compose file on the Config screen and press Scan.

Compose files are checked before they are deployed. A service that mounts a path from the host, mounts the Docker socket, runs privileged, adds capabilities or uses the host’s network is refused. Use named volumes instead of host paths.

The port

Your app must listen on the port in the PORT environment variable, on all interfaces (0.0.0.0), not on localhost.

The port is detected from your start script or your Dockerfile’s EXPOSE line. If neither says, the framework’s usual port is used. You can change it on the Config screen. Whatever it ends up being, it is passed to your app as PORT, so reading PORT always works:

const port = process.env.PORT || 3000;
app.listen(port, '0.0.0.0');

Environment variables

There are two places to set them:

  • Project environment: values shared by the project and available during the build and at runtime.
  • A service’s Environment tab (open Apps & Services, then the service): runtime values for that service only. A service value overrides a project value with the same name.

Press Add variable, or use Edit as text to paste several at once. Upload .env imports a file.

Things to know:

  • Every value is encrypted before it is saved.
  • Mark sensitive values as secret with the key icon. A secret is masked in the dashboard, in API responses and in deploy logs. The Download .env button exports real values, including secrets, so treat that file with care.
  • Saving does not restart your app. After changing values, press Apply environment changes, or redeploy. Values needed at build time, such as NEXT_PUBLIC_ variables, need a redeploy that rebuilds.

Persistent storage

A container’s own filesystem is replaced on every deploy. Anything that must survive a deploy, such as uploads or a SQLite file, belongs in a volume.

You can declare a volume in three ways:

  • a VOLUME line in your Dockerfile, which is mounted automatically;
  • a named volume in your compose file, for example pgdata:/var/lib/postgresql/data;
  • the Persistent storage setting of the project, one path per line, for example uploads:/app/public/uploads.

Volumes are named and belong to the project. Paths on the host (anything starting with /, ./ or ~ on the left of the colon) are refused. A volume change takes effect on the next deploy.

A volume is on the server the project runs on. It is not a copy kept somewhere else. See keeping your own copies.

Memory and CPU

Your plan does not set a memory or CPU limit per project. The projects on a server share its memory and CPU (see Where your apps run). If your app is killed for using too much memory, the server is full: grow it (managed servers), move some projects to another server, or add a server.

Deploying again

  • Redeploy Project builds and releases the latest commit on the deploy branch.
  • Auto Deploy, under Source & Triggers, does that on every push. See the Quickstart.
  • Rollback to this version, on an earlier deployment, goes back. See Rollback.

Optional: openship.json

You do not need a configuration file. If you would rather keep the build settings in your repository than in the dashboard, add an openship.json at the root. Detection still runs; the file overrides the fields you declare.

{
  "framework": "nextjs",
  "buildCommand": "pnpm build",
  "port": 3000,
  "env": {
    "NEXT_PUBLIC_API_URL": "https://api.example.com"
  },
  "releaseCommands": ["pnpm prisma migrate deploy"],
  "volumes": ["uploads:/app/public/uploads"]
}
  • releaseCommands run once per deploy, after the build and before the new version goes live. If one fails, the deploy fails and the running version is left alone. They run for single-app projects, not for compose projects.
  • Do not put secret values in the file. Set them in the dashboard and mark them secret.

The earlier .candorfile format belonged to the platform Candor Deploy ran on before November 2026. It is not read any more.

Something here wrong, unclear or missing? Tell us. Docs get fixed like bugs.

Not a customer yet? Start a free trial, or see plans and limits.