Docs/Get started/Core concepts

Core concepts

3 min read
On this page

Dokwe organizes everything around a small set of objects. Learn these and the rest of the docs will read naturally.

How the pieces fit#

text
Workspace
├── Members, GitHub connections, servers
├── Service apps (databases, caches, brokers)
└── Project
    └── Pipeline
        ├── Staging environment ──── deployments ──── image
        └── Production environment ─ deployments ──── image
                 │
                 └── runs on Dokwe Cloud or a BYOS server, reached through domains

Workspace#

A workspace is the top-level account your team shares. It holds your projects, your team members and their roles, your connected GitHub accounts, and the servers you have registered.

GitHub access is per workspace. If a project moves to a workspace whose GitHub accounts can't read its repository, Dokwe flags it. See Deploy from GitHub and Team roles.

Project#

A project is one application. It has:

  • A unique slug, used in URLs and container names.
  • A source: a GitHub repository and branch, or Dokwe's built-in git server if you deploy with the CLI.
  • A deployment mode: container (the default) or native. See Container or native.
  • Optional build settings, such as a root directory for monorepos, install, build and start command overrides, and a custom Dockerfile.

Environment#

Every project gets a pipeline with two environments when you create it: Staging and Production. Each environment runs its own copy of your app, with its own:

  • Auto-domain. Production uses https://<slug>-app.dokwe.com; staging uses https://<slug>-staging-app.dokwe.com.
  • Environment variables, merged on top of the project-level variables.
  • Custom domains.
  • Deployment target (Dokwe Cloud or one of your servers).

New code lands in staging. You move it to production by promoting it. See Staging and production.

Deployment#

A deployment is one attempt to put a specific commit live in an environment. Pushes, the Deploy button, dokwe deploy, promotions, and container rollbacks all create deployments.

A deployment moves through these statuses:

StatusMeaning
queuedCreated, waiting to start.
buildingCloning, building, and starting.
liveServing traffic.
failedSomething went wrong. The build log shows why.
rolled_backWas live, then replaced by a newer deployment.
cancelledStopped before it finished.

Every deployment keeps its commit, author, build log, and build duration, so you can review history and roll back. See Rollbacks.

Build and image#

In container mode, Dokwe builds a Docker image for each commit, tagged <slug>:<commit-sha>. It uses, in order of priority:

  1. The custom Dockerfile saved in the project's Dockerfile tab.
  2. A Dockerfile in your repository (or root directory).
  3. A Dockerfile Dokwe generates after detecting your stack.

The image is built on the server that runs the environment. Promotion reuses this image instead of rebuilding. In native mode there is no image; Dokwe builds a .tar.gz artifact instead.

Server#

Each environment runs on a deployment target:

  • Dokwe Cloud builds and runs on Dokwe's own infrastructure. This is the default.
  • BYOS (bring your own server) builds and runs on a VPS or bare-metal machine you connect by installing the Dokwe agent. A server shows as pending, online, offline, or error.

You choose the target per environment, under the environment's Settings tab, in Deployment Target. A change applies on the next deployment. Native mode always needs a BYOS server. See Bring your own server.

Service app#

A service app is a managed backing service that lives in your workspace beside your projects. The supported types are PostgreSQL, MySQL, SQL Server, Redis, MongoDB, and RabbitMQ. Service apps have their own lifecycle and backups and are not part of a deployment. See Databases.

Rolling back or redeploying a project never touches the data in a service app.

Domain#

A domain routes traffic to an environment. There are two kinds:

  • Auto domains are created for you on dokwe.com and are ready right away.
  • Custom domains are ones you own. You verify them with DNS, and Dokwe provisions TLS.

See Domains.