# How OpenPanel fits together

Source: https://openpanel.sh/docs/concepts

How organizations, members, servers, projects, services, deployments and addresses relate, in one page.

Everything in OpenPanel belongs to an **organization**. People join it as **members** with a role. The organization owns its servers, its private network, its Git accounts and its projects; a project holds the services that run on those servers.

## The parts [#the-parts]

| Part | What it is | Belongs to |
|---|---|---|
| [Organization](/docs/concepts/organizations) | The workspace everything else lives in. Every account has its own, and joins others by invitation. | Its Owner, the person it was made for |
| [Member](/docs/members/roles) | A person in an organization, with one role: **Owner**, **Admin**, **Can deploy** or **Can view**. | The organization |
| [Server](/docs/concepts/servers) | A Linux machine that OpenPanel has set up and hardened, with the [OpenPanel agent](/docs/servers/agent) on it. Every server is a seat in the [Servers plan](/docs/billing). | The organization |
| [Private network](/docs/concepts/private-network) | One network per organization, run by Tiltas, in which servers, computers and phones reach each other on private addresses. | The organization |
| [Git account](/docs/git) | Access to repositories on GitHub, GitLab, Gitea, Forgejo, Bitbucket or any Git server. | The organization |
| [Project](/docs/concepts/projects) | One app: its services, their variables and domains, in its production environment. Seen by the whole organization, or private. | The organization |
| [Service](/docs/concepts/services) | One thing that runs in a project, from a Docker image or a Git repository, on the servers you choose. | Its project |
| [Deployment](/docs/concepts/deployments) | One rollout of a service with its settings of that moment, kept in its history. | Its service |
| [Address](/docs/concepts/addresses) | How a service is reached: an opnl.app address, your own domain, a port on the edge, or not at all. | Its service |
| [Edge](/docs/concepts/regions) | The part of OpenPanel that the internet reaches, and that your servers' agents connect to. | OpenPanel |

```text
Organization
├── Members (Owner, Admin, Can deploy, Can view)
├── Servers ─────────────────┬──► agent connects out to OpenPanel's edge
├── Private network ◄────────┘    servers join it during their setup
│   └── Devices (servers, computers, phones, machines)
├── Git accounts
└── Projects (organization-wide or private)
    └── production environment
        └── Services ──► run on the organization's servers
            ├── Variables and secrets
            ├── Deployments (history, rollbacks)
            ├── Volumes
            └── Domains (opnl.app, your own)
```

## How a deploy reaches your server [#how-a-deploy-reaches-your-server]

1. You change a service's settings or variables; nothing that runs changes yet.
2. You deploy. OpenPanel records a [deployment](/docs/concepts/deployments) with the service's settings of that moment and places its replicas on the service's servers.
3. For a Git service, the agent of the first of those servers builds the image there. See [How builds work](/docs/builds).
4. OpenPanel tells each server's agent what to run. The agent starts the new containers beside the old ones, checks their health and then stops the old ones. A service with a volume stops first, so two containers never write one volume.
5. The edge sends the service's public traffic to its ready replicas, through each agent's own connection.

Each project gets a network of its own on every server it runs on. A service reaches the project's other services on the same server by their names.

## Who can do what [#who-can-do-what]

A member's role gives them a level on every project the organization sees: the Owner and Admins **admin**, **Can deploy** members **deploy**, **Can view** members **view**. A member can also be given their own level on one project, and a private project is reached only by the people given access to it. See [Roles](/docs/members/roles) and [Per-project access](/docs/members/per-project-access).

<Cards>
<Card href="/docs/concepts/projects" title="Projects" description="What a project holds, and who can see and change it." />

<Card href="/docs/concepts/services" title="Services" description="Where a service comes from, and how it is reached." />

<Card href="/docs/concepts/deployments" title="Deployments" description="What a deployment keeps, and its statuses." />

<Card href="/docs/concepts/servers" title="Servers" description="What a connected server is, and its states." />

<Card href="/docs/concepts/private-network" title="Private network" description="Devices, servers and private addresses." />

<Card href="/docs/getting-started/where-apps-run" title="Where your apps run" description="Your own server, a bought one, or Cloud." />
</Cards>