Simple Node.js app demonstrating how to package for one-click deploys on self-hosted panels.
Each request increments a count that's stored on the local filesystem, which should persist between restarts; set the destination directory path via a DATA_DIRECTORY environment variable.
These panels maintain their own 'app catalogs' for one-click installs; until your app is included there, it will require more clicks to setup. Below are instructions for each platform so that you can test easily before submission.
Many of them also require publishing a Docker image somewhere to install. For simplicity the examples below uses pre-built images.
Setup
-
Install Cloudron via one-click images on one of various hosting platforms.
-
Clone the project locally:
git clone https://github.com/0dataapp/oneclick-proof
- From the project directory, run the
installcommand via the Cloudron CLI:
cd oneclick-proof
cloudron install --image 0data/oneclick-proof:cloudron --location oneclick-proof
Updates
- From the project directory, run the
updatecommand via the Cloudron CLI:
cloudron update --image 0data/oneclick-proof:cloudron --app oneclick-proof
See the packaging tutorial or Cloudron official packages for reference. You can also use Cloudron itself to build and as a registry.
Setup
- Install Caprover via one-click DigitalOcean droplet.
- Navigate to
Apps→Create A New App→One-Click Apps/Databases, then search for>> TEMPLATE <<or scroll to the bottom. - Select the
>> TEMPLATE <<app and paste the configuration fromcaprover/compose.yml. - Name your app
oneclick-proofor something else, then clickDeploy.
- Navigate to
Apps→Create A New App. - Check the box for
Has Persistent Data, name your app asoneclick-proofor something else, and then clickCreate New App. - Navigate to your app settings, then
App Configs→Persistent Directories. - Set
Path in Appto/usr/src/app/__localand "Label" tooneclick-proof-local; clickSave & Restart. - See the update command below to finalize.
Other deployment methods, include uploading a .tar file and deploying code directly from your machine without publishing a Docker image via the Caprover CLI:
git clone https://github.com/0dataapp/oneclick-proof
cd oneclick-proof
caprover deploy
Updates
- Navigate to
Deployment, enter0data/oneclick-proof:latestintoDeploy via ImageName, then clickDeploy. It may take some time after 'finishing' so give it a minute.
- Call
deployagain but with a flag to use the previous configuration:
caprover deploy -d
More info on packaging and deployment:
- Captain Definition File
- Persistent Apps
- How to Run Docker Compose on CapRover
- Caprover official packages
Setup
-
Install Coolify via one-click images on Hetzner, DigitalOcean or other hosting platforms.
-
Navigate to
Projects→ choose/create a project… →Resources→+ New→Applications→Git Based→Public Repository. -
Configure the following parameters:
-
Repository URL
https://github.com/0dataapp/oneclick-proof/tree/master -
Build Pack
Docker Compose -
Docker Compose Location
/coolify/compose.yml
-
-
Select
Continueand then, on the followingConfigurationpage, clickDeploy. -
Setup a domain under
Configuration→General→Domainsby entering something likehttps://oneclick-proof.[your root domain]and clickingSave, or make a random one by clickingGenerate Domain; in case of SSL issues clickRedeploy.
Updates
- Click
RedeployorAdvanced→Force deploy (without cache)to pull from the Git repository.
More information: