To add a server, open Servers, create a new server, enter its address and SSH details, and validate it. OnePloy connects over SSH, checks the operating system, installs Docker and Docker Compose if they are missing, and makes the server available for deployments.
Before you start
- A Linux server that OnePloy can reach over SSH from the internet.
- A user that can run Docker and install packages, usually
root. - Ports 80 and 443 open if the server will serve websites.
How do I add a server I already have?
- Open Servers and add a new server, choosing the manual option.
- Fill in Name, IP address or domain, Port (usually
22) and User. - Choose the Authentication method, SSH key or Password (see below).
- Tick Use as a dedicated build server only if this server should build images rather than run workloads. See Multiple servers and build servers.
- Save, then run the validation.
SSH key or password?
- SSH key: pick a private key from Keys & Tokens and add its public key to
~/.ssh/authorized_keysfor that user on the server. - Password: enter the SSH password. OnePloy uses it once to install a freshly generated key, verifies that key login works, and never stores the password.
What does validation check?
Validation runs these steps in order and shows the result of each:
- The server is reachable over SSH.
- The operating system is supported.
- Required packages are installed.
- Docker Engine is installed.
- Docker Compose is installed.
- The Docker version is recent enough.
When every step passes, OnePloy creates the default network and starts the reverse proxy.
How do I create a server on a cloud provider?
OnePloy can create servers directly on Hetzner, DigitalOcean and Vultr with your own API token.
- Open Keys & Tokens and add a cloud provider token.
- Open Servers, add a new server and choose the provider.
- Pick the location or region, server type or plan, and image.
- Choose the SSH private key OnePloy should install. For Hetzner you can also attach existing SSH keys, firewalls and private networks.
- Create the server. OnePloy provisions it with the provider, then validates it like any other server.
You can store reusable cloud-init scripts under Keys & Tokens and apply them when creating servers.
Can I add servers through the API?
Yes:
curl -X POST https://app.oneploy.dev/api/v1/servers \
-H "Authorization: Bearer $API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"web-1","ip":"203.0.113.10","port":22,"user":"root","private_key_uuid":"KEY_UUID"}'
Set "instant_validate": true to validate immediately, or call POST /api/v1/servers/{uuid}/validate afterwards. The user field defaults to root. Provider-specific endpoints exist too, such as POST /api/v1/servers/hetzner. See the API overview for authentication.
Troubleshooting
- Connection refused or timeout: check the IP, SSH port and any firewall between OnePloy and the server.
- Permission denied: check that the public key is in
authorized_keysfor the user you entered. - Plan limit reached: your team’s plan caps the number of servers. Upgrade on the Billing page.