Initialize Server
Before creating a project, you need to connect a server to Depfloy. Servers are the Linux machines your applications run on. You can either let Depfloy provision a new server through a connected provider — Hetzner, AWS or DigitalOcean — or you can bring your own server, any clean Ubuntu machine you can reach over SSH.
Server types #
Pick the server type that matches what you’ll do on it. Depfloy provisions the right software stack for each.
- App Server — runs your web applications. Comes with nginx, PHP, and the build tooling needed to deploy projects. The most common type.
- Database Server — dedicated to a database engine. Pick MySQL, PostgreSQL, or ClickHouse during setup. See Database Server.
- Cache Server — runs Redis (or Valkey) as a dedicated cache instance. Useful when you want cache traffic isolated from your app server. See Cache Server (Redis).
- Meilisearch Server — runs Meilisearch as a dedicated search instance. See Meilisearch Server.
- Load Balancer — distributes traffic across multiple App Servers. See Load Balancer.
You can mix server types within the same organization — for instance, an App Server, a separate Database Server, and a Load Balancer in front of multiple App Servers.
Server requirements #
Depfloy supports a clean install of:
- Ubuntu 26.04 LTS
- Ubuntu 24.04 LTS (recommended)
- Ubuntu 22.04
You choose one of these three when you connect a custom server. A server Depfloy creates through a provider gets Ubuntu 24.04; there is no operating system to pick on that path.
The server should also:
- Be reachable from the public internet over SSH
- Allow root SSH access (Depfloy disables password-based root login during provisioning)
- Have at least 1 CPU core, 1 GB RAM, and 10 GB free disk
- Have
curlavailable - Not be throttling SSH from Depfloy at the network or firewall level
- Not have antivirus software interfering with installation
These are requirements for a machine you connect yourself. When Depfloy creates the server through a provider it prepares all of this for you — including root SSH on AWS, where Ubuntu images ship with it disabled.
Connecting a provider #
If you connect a Hetzner Cloud project, an AWS account or a DigitalOcean token under System → Server providers, Depfloy can create the server for you in minutes — no command line needed.
Adding provider credentials needs the settings:update permission, which the Owner and Admin roles have. On a provider with no credentials, Owners and Admins see Set Up; other roles see “An Owner or Admin adds credentials for this provider” and pick from the providers already set up.
Adding a server #
Servers are created on the New Server page (roles with server:create). Open it from New Server on the Servers list, from New → New server in the top bar, or from More → New server on Overview.
- Choose the server type and a provider (Hetzner, Amazon Web Services, Digital Ocean), or Custom server for a machine you already have. The first step also shows Before you start, the server requirements.
- For a provider, choose where the server runs: Select location on Hetzner, Select region on AWS and DigitalOcean. The list shows each location code with its city and country.
- On the Configure step, titled with the provider’s name, set the provider’s settings described below. You also give it a name and, optionally, an environment tag (Production / Staging / Dev).
- Click Create Server.
A custom server has no location step; see Custom server.
Back returns one step. If a field needs a fix, its error shows under it and the page scrolls to the first one.
Every provider flow starts with where the server should run, then what it should be. The size list is searchable and can be narrowed by CPU architecture, core count, memory and monthly price; it is ordered by price, so the cheapest size that fits sits at the top.
Hetzner setup #
Pick the location, instance size, and any extras (private network), then click Create Server. Depfloy creates the machine on Hetzner, attaches its SSH key, and starts the install — you do not need to log into Hetzner directly.
AWS setup #
Pick the region first. The list searches on city as well as region code, so “frankfurt” finds eu-central-1. Then:
- VPC and subnet — the VPCs in that region with their subnets, your default VPC preselected. The subnet decides which availability zone the instance runs in.
- Instance type — priced monthly from AWS’s on-demand list price for that region. Both x86 and Arm (Graviton) types are offered, and Depfloy picks the matching Ubuntu image for whichever you choose, so AMI ids never come into it.
- Root volume — size in GB (30 by default, 20 minimum) and type: gp3, gp2 or io2.
- Elastic IP — on by default, giving the server a fixed public address.
Click Create Server. Depfloy launches the instance, creates its key pair and security group, and starts the install without you opening the AWS Console.
About the Elastic IP. AWS bills every public IPv4 address by the hour, an Elastic IP among them, so turning this off does not avoid the charge — it gives up the fixed address for the same money. Without one, AWS hands out a different public IP each time the instance is stopped and started, which breaks any DNS record pointing at the server. Depfloy releases the address when you delete the server.
Deleting the server in Depfloy removes everything it created in your account: the instance, the key pair, the security group and the Elastic IP.
DigitalOcean setup #
Pick the region first, then the droplet size — priced monthly in USD, straight from DigitalOcean’s own size list, and the same figure in every region. Basic, Premium, General Purpose, CPU-Optimized and Memory-Optimized droplets are offered; Storage-Optimized and GPU droplets are not. Three settings follow:
- VPC — optional. Left unset, the droplet joins the region’s default network, and the picker labels which one that is. Only VPCs in the region you chose are listed.
- Create a Cloud Firewall — on by default. It lets in SSH, HTTP and HTTPS (ports 22, 80 and 443) from anywhere and allows all outbound traffic.
- Use a Reserved IP — off by default.
There is no image to pick: Depfloy installs Ubuntu 24.04, as on every provider server.
About the Cloud Firewall. It filters both directions, and a DigitalOcean firewall with no outbound rules blocks all outgoing traffic — which would stop the install at its first package download. Depfloy therefore writes the outbound rules as well as the inbound ones. It does not replace UFW on the machine: the install configures UFW with the same three ports, and the Cloud Firewall repeats them at DigitalOcean’s edge, where a mistake in UFW cannot undo them. Rules you add under the server’s Firewall section apply to UFW.
About the Reserved IP. A droplet keeps its own public IPv4 address for as long as the droplet exists, so this is not what gives the server a stable address — it already has one. A Reserved IP is worth turning on when you want to be able to move that address to a different droplet later. It is free while attached to a droplet and billed by the hour when it is not. Turn it on and the Reserved IP becomes the address Depfloy manages the server by and the one to put in DNS.
Click Create Server. Depfloy adds an SSH key to your account, creates the droplet, waits for it to come up, then attaches the firewall and the Reserved IP if you asked for them. Deleting the server in Depfloy releases all four.
Custom server #
Pick Custom server instead. There is no location step; Connection details asks for:
- IP address — the server’s public IP
- SSH port
- Private IP address (optional)
- Operating system — Ubuntu 26.04, 24.04 or 22.04
- Notes (optional)
Click Create Server. Depfloy gives you a one-line bootstrap command to paste into a root SSH session on your server. Once the script finishes (typically 10-15 minutes), Depfloy detects the connection and the server is ready.
What happens during install #
While the server is being prepared, its page (/servers/{server}) shows the setup progress and, for a custom server, the bootstrap command. When the install finishes, the server’s sections appear without reloading the page.
New App Servers are provisioned with the current stable release of nginx, so recent nginx features and fixes are available without any manual upgrade.
If install fails, the setup progress shows where it stopped and what to try next.
Environment tagging #
Every server can be tagged with an environment: Production, Staging, or Dev. Tags are optional — leave a server untagged if it doesn’t fit a category.
You can tag a server during creation or change it later in the server’s Settings section — see Servers.
You’ll be notified when ready #
You’ll receive a notification when the server is fully set up and ready for projects. From this point you can create your first project.