From 03aa66aa9124e5cfd186ae0f88fbce36b9eae1fc Mon Sep 17 00:00:00 2001 From: Jambotron Date: Wed, 18 Nov 2026 19:31:12 +0100 Subject: [PATCH] Jambotron one-click template --- .gitattributes | 1 + README.md | 28 +++++++++++++++++++++++++++ docker-compose.yml | 47 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 76 insertions(+) create mode 100644 .gitattributes create mode 100644 README.md create mode 100644 docker-compose.yml diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6313b56 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf diff --git a/README.md b/README.md new file mode 100644 index 0000000..6d172d7 --- /dev/null +++ b/README.md @@ -0,0 +1,28 @@ +# Nextcloud on Jambotron + +Your own cloud — files, calendar, contacts and sharing. A self-hosted alternative to Google Drive. + +A ready-made template for [Jambotron](https://jambotron.com): one `docker-compose.yml` with the official images, nothing to build. + +## Deploy in one click + +1. Sign in to [jambotron.com](https://jambotron.com). +2. Press **Deploy** on the **Nextcloud** card ([jambotron.com/apps](https://jambotron.com/apps), the home page or an empty projects page). +3. Jambotron uploads this template, generates random secrets (project variables `NEXTCLOUD_DB_PASSWORD`, `NEXTCLOUD_ADMIN_PASSWORD`), adds an HTTPS subdomain to the `nextcloud` service (port 80) and starts the deploy. The first start installs Nextcloud — give it a minute or two. +4. Open the address and log in as `admin` with the password from the project variable `NEXTCLOUD_ADMIN_PASSWORD` (Project → Variables). + +## Your own domain + +Subdomains of Jambotron are trusted already. For your own domain add a project variable `NEXTCLOUD_DOMAIN` (e.g. `cloud.example.com`) before the first deploy. + +## Deploy it yourself + +Download this repository as a ZIP, create a project on Jambotron, upload the ZIP, pick `docker-compose.yml`, set the project variables `NEXTCLOUD_DB_PASSWORD` and `NEXTCLOUD_ADMIN_PASSWORD`, deploy and add a domain to the `nextcloud` service, port 80. Or point a project at this repository (deploy from Git). + +## Data + +Named volumes survive redeploys: `nextcloud_data` — Nextcloud itself, its settings and your files; `db_data` — the PostgreSQL database. + +## Limits + +Fits the free plan: Nextcloud gets 640 MB and PostgreSQL 256 MB of the 1 GB project memory. Disk space for files comes from the project's VM. diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..81b0b52 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,47 @@ +# Nextcloud — your own cloud: files, calendar, contacts and sharing, a self-hosted alternative to Google Drive. +# On Jambotron: deploy → domain on the nextcloud service, port 80 → log in as admin with NEXTCLOUD_ADMIN_PASSWORD +# (project variable). NEXTCLOUD_DB_PASSWORD and NEXTCLOUD_ADMIN_PASSWORD: one-click deploy generates them. +services: + nextcloud-db: + image: postgres:17-alpine + restart: unless-stopped + environment: + POSTGRES_DB: nextcloud + POSTGRES_USER: nextcloud + POSTGRES_PASSWORD: ${NEXTCLOUD_DB_PASSWORD:?set NEXTCLOUD_DB_PASSWORD} + healthcheck: + test: ["CMD-SHELL", "pg_isready -U nextcloud -d nextcloud"] + interval: 5s + timeout: 3s + retries: 10 + volumes: + - db_data:/var/lib/postgresql/data + mem_limit: 256m + + nextcloud: + image: nextcloud:stable-apache + restart: unless-stopped + depends_on: + nextcloud-db: + condition: service_healthy + expose: + - "80" + environment: + POSTGRES_HOST: nextcloud-db + POSTGRES_DB: nextcloud + POSTGRES_USER: nextcloud + POSTGRES_PASSWORD: ${NEXTCLOUD_DB_PASSWORD} + NEXTCLOUD_ADMIN_USER: admin + NEXTCLOUD_ADMIN_PASSWORD: ${NEXTCLOUD_ADMIN_PASSWORD:?set NEXTCLOUD_ADMIN_PASSWORD} + # Jambotron gives the project an HTTPS subdomain: trust any of them and build https links behind the proxy + NEXTCLOUD_TRUSTED_DOMAINS: "*.jambocheck.com *.staging.jambocheck.com ${NEXTCLOUD_DOMAIN:-}" + TRUSTED_PROXIES: "10.0.0.0/8 172.16.0.0/12 192.168.0.0/16" + OVERWRITEPROTOCOL: https + PHP_MEMORY_LIMIT: 512M + volumes: + - nextcloud_data:/var/www/html + mem_limit: 640m + +volumes: + db_data: + nextcloud_data: