An application in OnePloy is your own code or image running as a container on one of your servers. You add it to a project environment, choose where the source comes from and how to build it, and OnePloy handles the build, the container, the proxy route and the SSL certificate.
What sources can an application use?
| Source | When to use it |
|---|---|
| Public Git Repository | Any public repository. No credentials needed. |
| Private Git Repository (with Deploy Key) | A private repository accessed over SSH with a repository-scoped deploy key. |
| Git Repository (with GitHub App) | Public or private GitHub repositories, with automatic webhooks and pull request previews. |
| Git Repository (with GitLab App) | Public or private GitLab projects, with automatic webhooks and merge request previews. |
| Dockerfile | Paste a Dockerfile and build it without a repository. |
| Docker Compose | Paste a Compose file and run a multi-container app without a repository. |
| Docker Image | Run a prebuilt image from any registry. No build step. |
How do I add an application?
- Open a project and environment, then choose Add resource.
- Pick one of the sources above.
- Fill in the repository, branch or image, and choose a build pack.
- Choose the server if you have more than one.
- Press Deploy.
What can I configure?
Each application has its own settings area. The most used parts are:
- General: name, build pack, install, build and start commands, base directory, publish directory, exposed ports, port mappings, and pre-deployment and post-deployment commands.
- Domains: custom domains, redirects and HTTPS. See Domains and SSL.
- Environment variables: runtime and build-time values. See Environment variables.
- Persistent storage: volumes and file mounts. See Persistent storage.
- Healthcheck and Rollback: see Health checks and rollbacks.
- Preview deployments: see Preview deployments.
- Webhooks: see Webhooks and CI/CD.
- Scheduled tasks: commands that run inside the container on a cron schedule, with an execution history.
- Resource limits: CPU and memory limits for the container.
- Advanced: auto deploy, build cache, Git submodules and LFS, clone depth, watch paths, GPU access, gzip compression and log drains.
How do I see what is happening?
- Deployments lists every deployment with its full build log. A deployment can be cancelled while it runs.
- Logs streams the container output.
- Terminal opens a shell inside the running container, if your role allows terminal access.
- Metrics shows CPU and memory use when metrics are enabled for the server.
Can I control applications from the API?
Yes. The REST API can create applications from every source type, update settings, manage variables and storage, and start, stop, restart, deploy or roll back. See the API overview.