diff --git a/apps/beszel/README.md b/apps/beszel/README.md new file mode 100644 index 0000000..3375642 --- /dev/null +++ b/apps/beszel/README.md @@ -0,0 +1,15 @@ +## First login + +The first visit asks you to create the admin account, so until you've done that only you can open the app. Open it from your Cottage dashboard, create the admin account, then choose **Done** on the app's page so anyone you share the address with can reach it. + +## Add a server + +Choose **Add System**, give it a name, and pick **WebSocket** as the connection. Beszel shows an install command for Docker or a single binary: run it on the server you want to watch. The agent connects out to your app's address over HTTPS, so you don't need to open any ports on that server. + +## Alerts + +Open a system and choose the bell to set limits for CPU, memory, disk or downtime. Outbound mail ports are blocked on Cottage, so send alerts through a webhook service instead: **Settings → Notifications** takes ntfy, Gotify, Discord, Slack, Telegram and other Shoutrrr URLs. + +## Export your data + +Open `/_/` on your app's address and sign in with the same account to reach the database admin, where **Settings → Backups** makes a downloadable backup. Cottage also keeps nightly backups of the whole app. diff --git a/apps/beszel/cottage.yml b/apps/beszel/cottage.yml new file mode 100644 index 0000000..c44994f --- /dev/null +++ b/apps/beszel/cottage.yml @@ -0,0 +1,16 @@ +name: Beszel +tagline: See how your servers are doing, at a glance. +category: Monitoring +description: >- + A small hub that collects CPU, memory, disk, network and Docker container + stats from agents on your servers, keeps the history, and alerts you when + something crosses a limit you set. +upstream: https://github.com/henrygd/beszel +website: https://beszel.dev +license: MIT +images: + - ref: henrygd/beszel:0.21.2 + digest: sha256:b0be90bd4aee2993fde763032a5098ce4386fba43cfe5031ec017b8d9e8c97a2 +mobile_apps: false +# The first visit creates the admin account. +first_visit_claims_admin: true diff --git a/apps/beszel/icon.svg b/apps/beszel/icon.svg new file mode 100644 index 0000000..681259c --- /dev/null +++ b/apps/beszel/icon.svg @@ -0,0 +1 @@ + diff --git a/apps/beszel/template.yml b/apps/beszel/template.yml new file mode 100644 index 0000000..4e89ced --- /dev/null +++ b/apps/beszel/template.yml @@ -0,0 +1,24 @@ +# Beszel: a lightweight server monitoring hub. Agents on your machines report to it. +x-harbor: + slug: beszel + name: Beszel + description: Lightweight server monitoring hub. + version: "0.21.2-c1" + primary: { service: app, port: 8090 } + health_path: /api/health + default_resources: { cpu_millis: 250, memory_mb: 256, storage_mb: 5120 } + min_resources: { cpu_millis: 250, memory_mb: 128, storage_mb: 1024 } + volumes: + data: { uid: 1000, gid: 1000, mode: "0750" } + +services: + app: + image: henrygd/beszel:0.21.2 + user: "1000:1000" + environment: + # Used in the agent install commands the hub shows, and for links in alerts. + APP_URL: ${HARBOR_PUBLIC_URL} + volumes: [ "data:/beszel_data" ] + +volumes: + data: diff --git a/apps/changedetection-io/README.md b/apps/changedetection-io/README.md new file mode 100644 index 0000000..73a926a --- /dev/null +++ b/apps/changedetection-io/README.md @@ -0,0 +1,17 @@ +## First login + +changedetection.io starts without a password, so until you've set one only you can open the app. Open it from your Cottage dashboard, go to **Settings → General**, enter a password and save. Then choose **Done** on the app's page so anyone you share the address with can reach it (they'll need the password). + +## Watch a page + +Paste an address into the box at the top and choose **Watch**. The app checks it on a schedule and shows a diff whenever something changes. Use **Edit → Filters & Triggers** to watch just part of a page, or to only care about certain words. + +Pages are fetched with plain requests. Sites that only render with JavaScript need a separate browser service, which this app doesn't include. + +## Notifications + +Under **Settings → Notifications**, add one or more Apprise URLs, such as `ntfys://`, `discord://` or `tgram://`. Outbound mail ports are blocked on Cottage, so `mailto://` won't send; use one of the push or chat services instead. + +## Export your data + +Open **Backups** in the top menu and choose **Create backup** to download a zip of your watches and their history. Cottage also keeps nightly backups of the whole app. diff --git a/apps/changedetection-io/cottage.yml b/apps/changedetection-io/cottage.yml new file mode 100644 index 0000000..b56e690 --- /dev/null +++ b/apps/changedetection-io/cottage.yml @@ -0,0 +1,16 @@ +name: changedetection.io +tagline: Get told when a web page you care about changes. +category: Monitoring +description: >- + Watch any web page for changes to its text, prices, stock or a part you + pick, see a clear diff of what changed, and get a notification through + ntfy, Discord, Telegram, Slack or one of many other services. +upstream: https://github.com/dgtlmoon/changedetection.io +website: https://changedetection.io +license: Apache-2.0 +images: + - ref: dgtlmoon/changedetection.io:0.70.4 + digest: sha256:b6aae2572a0bf1a671b1b202365ddcfe16a31fa8a60be89df606705731b55f8b +mobile_apps: false +# The app starts without a password; the first visitor sets one under Settings. +first_visit_claims_admin: true diff --git a/apps/changedetection-io/icon.svg b/apps/changedetection-io/icon.svg new file mode 100644 index 0000000..6c854f8 --- /dev/null +++ b/apps/changedetection-io/icon.svg @@ -0,0 +1 @@ + diff --git a/apps/changedetection-io/template.yml b/apps/changedetection-io/template.yml new file mode 100644 index 0000000..189d100 --- /dev/null +++ b/apps/changedetection-io/template.yml @@ -0,0 +1,26 @@ +# changedetection.io: watches web pages and tells you when they change. +x-harbor: + slug: changedetection-io + name: changedetection.io + description: Website change detection and alerts. + version: "0.70.4-c1" + primary: { service: app, port: 5000 } + # A static file: it answers 200 with or without the app password set. + health_path: /static/favicons/favicon-32x32.png + default_resources: { cpu_millis: 500, memory_mb: 512, storage_mb: 5120 } + min_resources: { cpu_millis: 250, memory_mb: 256, storage_mb: 1024 } + volumes: + data: { uid: 1000, gid: 1000, mode: "0750" } + +services: + app: + image: dgtlmoon/changedetection.io:0.70.4 + user: "1000:1000" + environment: + PORT: "5000" + # Used for links in notifications. + BASE_URL: ${HARBOR_PUBLIC_URL} + volumes: [ "data:/datastore" ] + +volumes: + data: diff --git a/apps/checkmate/README.md b/apps/checkmate/README.md new file mode 100644 index 0000000..e5cda8c --- /dev/null +++ b/apps/checkmate/README.md @@ -0,0 +1,17 @@ +## First login + +The first person to register becomes the super admin, so until you've done that only you can open the app. Open it from your Cottage dashboard, fill in the sign-up form, then choose **Done** on the app's page so anyone you share the address with can reach it. + +Add teammates later from **Account → Team**. + +## Monitors and status pages + +Open **Uptime**, choose **Create monitor** and paste the address to watch. Under **Status pages** you can publish a public page that shows how your monitors are doing. + +## Notifications + +Add a channel under **Notifications**: ntfy, Discord, Slack, Telegram, Matrix, Pushover, PagerDuty and webhooks all work. Outbound mail ports are blocked on Cottage, so email alerts through SMTP won't send; use one of the other channels instead. + +## Export your data + +Open **Settings → Import / export monitors** and choose **Export to JSON**. Cottage also keeps nightly backups of the whole app, including its database. diff --git a/apps/checkmate/cottage.yml b/apps/checkmate/cottage.yml new file mode 100644 index 0000000..a35f328 --- /dev/null +++ b/apps/checkmate/cottage.yml @@ -0,0 +1,19 @@ +name: Checkmate +tagline: Watch your sites and servers, and share a status page. +category: Monitoring +description: >- + Monitor websites, APIs, ports, Docker containers and game servers for uptime + and response time, track incidents, schedule maintenance windows and publish + public status pages. Add its Capture agent to a server for CPU, memory and + disk graphs. +upstream: https://github.com/bluewave-labs/Checkmate +website: https://checkmate.so +license: AGPL-3.0-only +images: + - ref: ghcr.io/bluewave-labs/checkmate:4.1.0 + digest: sha256:f66a53fce561a526f939d994337843ac03211364daa3fd1de3a492c895c503d5 + - ref: mongo:8.0.38 + digest: sha256:479e85ced54ffb8a40dade1dcde2da2a9ae858515b9415e9cc54bfb8f0575d01 +mobile_apps: false +# The first account to register becomes the super admin. +first_visit_claims_admin: true diff --git a/apps/checkmate/icon.svg b/apps/checkmate/icon.svg new file mode 100644 index 0000000..3820a39 --- /dev/null +++ b/apps/checkmate/icon.svg @@ -0,0 +1 @@ + diff --git a/apps/checkmate/template.yml b/apps/checkmate/template.yml new file mode 100644 index 0000000..b8e2bc0 --- /dev/null +++ b/apps/checkmate/template.yml @@ -0,0 +1,41 @@ +# Checkmate: uptime, response time and server monitoring, with MongoDB for storage. +x-harbor: + slug: checkmate + name: Checkmate + description: Uptime and infrastructure monitoring. + version: "4.1.0-c1" + primary: { service: app, port: 52345 } + health_path: /api/v1/health + default_resources: { cpu_millis: 500, memory_mb: 1024, storage_mb: 5120 } + min_resources: { cpu_millis: 250, memory_mb: 768, storage_mb: 1024 } + weights: { app: 1, db: 1 } + volumes: + db_data: { uid: 999, gid: 999, mode: "0750" } + parameters: + - { key: JWT_SECRET, label: Session signing secret, type: string, secret: true, generate: random32 } + +services: + app: + image: ghcr.io/bluewave-labs/checkmate:4.1.0 + user: "1000:1000" + depends_on: + db: { condition: service_healthy } + environment: + NODE_ENV: production + DB_CONNECTION_STRING: mongodb://db:27017/uptime_db + CLIENT_HOST: ${HARBOR_PUBLIC_URL} + JWT_SECRET: ${JWT_SECRET} + TELEMETRY_ENABLED: "false" + db: + image: mongo:8.0.38 + user: "999:999" + # Keep MongoDB's cache small; it shares the app's memory. + command: [ "mongod", "--quiet", "--bind_ip_all", "--wiredTigerCacheSizeGB", "0.25" ] + volumes: [ "db_data:/data/db" ] + healthcheck: + test: [ "CMD", "bash", "-c", "exec 3<>/dev/tcp/127.0.0.1/27017" ] + interval: 5s + retries: 30 + +volumes: + db_data: diff --git a/apps/code-server/README.md b/apps/code-server/README.md new file mode 100644 index 0000000..5e969cb --- /dev/null +++ b/apps/code-server/README.md @@ -0,0 +1,15 @@ +## First login + +Enter the **Password** from the app's Overview tab. To change it, edit the parameter on Cottage and restart the app. + +The editor opens your home folder, `/home/coder`. Everything in it, including your projects, extensions and settings, is kept between restarts and included in backups. + +## Terminal and tools + +Open a terminal with **Terminal → New Terminal**. Git, curl and the usual shell tools are there. The app runs without root, so `sudo` and `apt` don't work; install language runtimes into your home directory instead (for example with `nvm`, `pyenv`, `rustup` or a downloaded Go tarball). + +Extensions come from Open VSX. Search for them in the Extensions view as you would in VS Code. + +## Export your data + +Right-click a folder in the Explorer and choose **Download** to get it as a file, or push your projects to a Git remote. Cottage also keeps nightly backups of the whole app. diff --git a/apps/code-server/cottage.yml b/apps/code-server/cottage.yml new file mode 100644 index 0000000..ff796fb --- /dev/null +++ b/apps/code-server/cottage.yml @@ -0,0 +1,14 @@ +name: code-server +tagline: VS Code in your browser, on a machine that's always on. +category: Developer tools +description: >- + The VS Code editor running on your own server, opened from any browser, + tablet or Chromebook. Your files, settings, extensions and terminal stay put + between sessions, and extensions come from the Open VSX registry. +upstream: https://github.com/coder/code-server +website: https://coder.com/docs/code-server +license: MIT +images: + - ref: codercom/code-server:4.146.0 + digest: sha256:fc708b18f6c613b5a9d00f1d1801e58376d3df9c5b5de77f5c02d67b711f99c9 +mobile_apps: false diff --git a/apps/code-server/icon.svg b/apps/code-server/icon.svg new file mode 100644 index 0000000..ef37634 --- /dev/null +++ b/apps/code-server/icon.svg @@ -0,0 +1 @@ + diff --git a/apps/code-server/template.yml b/apps/code-server/template.yml new file mode 100644 index 0000000..cd72b9f --- /dev/null +++ b/apps/code-server/template.yml @@ -0,0 +1,30 @@ +# code-server: VS Code in the browser, with a persistent home directory. +x-harbor: + slug: code-server + name: code-server + description: VS Code in your browser. + version: "4.146.0-c1" + primary: { service: app, port: 8080 } + health_path: /healthz + default_resources: { cpu_millis: 1000, memory_mb: 1024, storage_mb: 10240 } + min_resources: { cpu_millis: 250, memory_mb: 512, storage_mb: 2048 } + volumes: + home: { uid: 1000, gid: 1000, mode: "0750" } + parameters: + - { key: PASSWORD, label: Password, type: string, secret: true, generate: random32 } + +services: + app: + image: codercom/code-server:4.146.0 + user: "1000:1000" + # The image's entrypoint runs fixuid, a setuid helper that can't work with + # no-new-privileges. The image already runs as uid 1000, so start + # code-server directly under dumb-init. + entrypoint: [ "dumb-init", "/usr/bin/code-server" ] + command: [ "--bind-addr", "0.0.0.0:8080", "--auth", "password", "--disable-telemetry", "/home/coder" ] + environment: + PASSWORD: ${PASSWORD} + volumes: [ "home:/home/coder" ] + +volumes: + home: diff --git a/apps/forgejo/README.md b/apps/forgejo/README.md new file mode 100644 index 0000000..555f314 --- /dev/null +++ b/apps/forgejo/README.md @@ -0,0 +1,15 @@ +## First login + +Sign in as `owner` with the **Admin password** from the app's Overview tab. Cottage only uses that password to create the account when the app first starts; change it, your username and your email under **Settings** once you're in. + +Sign-ups are off, so nobody else can make an account. Add people under **Site administration → Identity & access → User accounts**, or switch off **Turn off sign-ups** in the app's settings on Cottage to let anyone register. + +## Your first repository + +Choose **+ → New repository**, or **+ → New migration** to bring one over from GitHub, GitLab, Gitea or another forge, with its issues and pull requests. Clone and push over HTTPS. SSH isn't available on Cottage; create an access token under **Settings → Applications** to use as your Git password. + +Outbound mail ports are blocked on Cottage, so Forgejo doesn't send email. Notifications still show up in the bell menu. + +## Export your data + +Every repository can be cloned with its full history, and wikis are Git repositories too (`.wiki.git`). Cottage also keeps nightly backups of the whole app, including issues and pull requests. diff --git a/apps/forgejo/cottage.yml b/apps/forgejo/cottage.yml new file mode 100644 index 0000000..1e63731 --- /dev/null +++ b/apps/forgejo/cottage.yml @@ -0,0 +1,15 @@ +name: Forgejo +tagline: A community-run forge for your Git repositories, issues and code review. +category: Developer tools +description: >- + A lightweight software forge with repositories, issues, pull requests, code + review, wikis, a package registry and Forgejo Actions for CI. Developed in the + open by a community under Codeberg e.V., and easy to mirror projects into + from GitHub or GitLab. +upstream: https://codeberg.org/forgejo/forgejo +website: https://forgejo.org +license: GPL-3.0-or-later +images: + - ref: codeberg.org/forgejo/forgejo:17.0.2-rootless + digest: sha256:39362ab93a94c0c9b8b330d2a877ddbb3f02fa8c0cba1b8d686d437b39f36a04 +mobile_apps: false diff --git a/apps/forgejo/icon.svg b/apps/forgejo/icon.svg new file mode 100644 index 0000000..e0f5377 --- /dev/null +++ b/apps/forgejo/icon.svg @@ -0,0 +1 @@ + diff --git a/apps/forgejo/template.yml b/apps/forgejo/template.yml new file mode 100644 index 0000000..6e36582 --- /dev/null +++ b/apps/forgejo/template.yml @@ -0,0 +1,50 @@ +# Forgejo: community-run Git hosting with issues, pull requests, packages and CI. Rootless image, SQLite. +x-harbor: + slug: forgejo + name: Forgejo + description: Self-hosted software forge. + version: "17.0.2-c1" + primary: { service: app, port: 3000 } + health_path: /api/healthz + default_resources: { cpu_millis: 500, memory_mb: 512, storage_mb: 10240 } + min_resources: { cpu_millis: 250, memory_mb: 256, storage_mb: 2048 } + volumes: + data: { uid: 1000, gid: 1000, mode: "0750" } + parameters: + - { key: SECRET_KEY, label: Secret key, type: string, secret: true, generate: random32 } + - { key: ADMIN_PASSWORD, label: Admin password, type: string, secret: true, generate: random32 } + - { key: DISABLE_REGISTRATION, label: Turn off sign-ups, type: bool, default: "true", editable: true } + +services: + app: + image: codeberg.org/forgejo/forgejo:17.0.2-rootless + user: "1000:1000" + # After the image's setup writes app.ini, migrate the database and create + # the admin account if there isn't one yet, then start the web server. + command: + - /bin/sh + - -c + - | + forgejo migrate + if [ "$$(forgejo admin user list --admin | wc -l)" -le 1 ]; then + forgejo admin user create --admin --username owner --email "admin@${HARBOR_HOSTNAME}" --password "$$ADMIN_PASSWORD" --must-change-password=false + fi + exec forgejo web + environment: + ADMIN_PASSWORD: ${ADMIN_PASSWORD} + # A secret key makes the image lock the web installer and use these settings. + SECRET_KEY: ${SECRET_KEY} + DB_TYPE: sqlite3 + DISABLE_REGISTRATION: ${DISABLE_REGISTRATION} + FORGEJO__server__DOMAIN: ${HARBOR_HOSTNAME} + FORGEJO__server__ROOT_URL: ${HARBOR_PUBLIC_URL}/ + FORGEJO__server__HTTP_PORT: "3000" + # Only HTTPS reaches the app, so clone over HTTPS. + FORGEJO__server__DISABLE_SSH: "true" + FORGEJO__server__START_SSH_SERVER: "false" + FORGEJO__service__DISABLE_REGISTRATION: ${DISABLE_REGISTRATION} + FORGEJO__mailer__ENABLED: "false" + volumes: [ "data:/var/lib/gitea" ] + +volumes: + data: diff --git a/apps/gitea/README.md b/apps/gitea/README.md new file mode 100644 index 0000000..ac096a1 --- /dev/null +++ b/apps/gitea/README.md @@ -0,0 +1,15 @@ +## First login + +Sign in as `admin` with the **Admin password** from the app's Overview tab. Cottage only uses that password to create the account when the app first starts; change it, your username and your email under **Settings** once you're in. + +Sign-ups are off, so nobody else can make an account. Add people under **Site Administration → Identity & Access → User Accounts**, or switch off **Turn off sign-ups** in the app's settings on Cottage to let anyone register. + +## Your first repository + +Choose **+ → New Repository**, or **+ → New Migration** to bring one over from GitHub, GitLab or another Git host, with its issues and pull requests. Clone and push over HTTPS. SSH isn't available on Cottage; create an access token under **Settings → Applications** to use as your Git password. + +Outbound mail ports are blocked on Cottage, so Gitea doesn't send email. Notifications still show up in the bell menu. + +## Export your data + +Every repository can be cloned with its full history, and wikis are Git repositories too (`.wiki.git`). Cottage also keeps nightly backups of the whole app, including issues and pull requests. diff --git a/apps/gitea/cottage.yml b/apps/gitea/cottage.yml new file mode 100644 index 0000000..29df0bd --- /dev/null +++ b/apps/gitea/cottage.yml @@ -0,0 +1,14 @@ +name: Gitea +tagline: Your own place for Git repositories, issues and pull requests. +category: Developer tools +description: >- + A lightweight Git service with repositories, issues, pull requests, code + review, wikis, a package registry and Gitea Actions for CI. Mirror projects + from GitHub or GitLab and work with your team over HTTPS. +upstream: https://github.com/go-gitea/gitea +website: https://about.gitea.com +license: MIT +images: + - ref: gitea/gitea:28.4.0-rootless + digest: sha256:15ab7fadb44981a2b781f40c712cad07066197f395100ea1c6326e14e5bb073a +mobile_apps: false diff --git a/apps/gitea/icon.svg b/apps/gitea/icon.svg new file mode 100644 index 0000000..b6b02e9 --- /dev/null +++ b/apps/gitea/icon.svg @@ -0,0 +1 @@ + diff --git a/apps/gitea/template.yml b/apps/gitea/template.yml new file mode 100644 index 0000000..52a412a --- /dev/null +++ b/apps/gitea/template.yml @@ -0,0 +1,52 @@ +# Gitea: Git hosting with issues, pull requests, packages and CI. Rootless image, SQLite. +x-harbor: + slug: gitea + name: Gitea + description: Self-hosted Git service. + version: "28.4.0-c1" + primary: { service: app, port: 3000 } + health_path: /api/healthz + default_resources: { cpu_millis: 500, memory_mb: 512, storage_mb: 10240 } + min_resources: { cpu_millis: 250, memory_mb: 256, storage_mb: 2048 } + volumes: + data: { uid: 1000, gid: 1000, mode: "0750" } + parameters: + - { key: SECRET_KEY, label: Secret key, type: string, secret: true, generate: random32 } + - { key: ADMIN_PASSWORD, label: Admin password, type: string, secret: true, generate: random32 } + - { key: DISABLE_REGISTRATION, label: Turn off sign-ups, type: bool, default: "true", editable: true } + +services: + app: + image: gitea/gitea:28.4.0-rootless + user: "1000:1000" + # After the image's setup writes app.ini, migrate the database and create + # the admin account if there isn't one yet, then start the web server. + command: + - /bin/sh + - -c + - | + gitea migrate + if [ "$$(gitea admin user list --admin | wc -l)" -le 1 ]; then + gitea admin user create --admin --username admin --email "admin@${HARBOR_HOSTNAME}" --password "$$ADMIN_PASSWORD" --must-change-password=false + fi + exec gitea web + environment: + # Keep the config file on the data volume, so one volume holds everything. + GITEA_APP_INI: /var/lib/gitea/custom/conf/app.ini + ADMIN_PASSWORD: ${ADMIN_PASSWORD} + # A secret key makes the image lock the web installer and use these settings. + SECRET_KEY: ${SECRET_KEY} + DB_TYPE: sqlite3 + DISABLE_REGISTRATION: ${DISABLE_REGISTRATION} + GITEA__server__DOMAIN: ${HARBOR_HOSTNAME} + GITEA__server__ROOT_URL: ${HARBOR_PUBLIC_URL}/ + GITEA__server__HTTP_PORT: "3000" + # Only HTTPS reaches the app, so clone over HTTPS. + GITEA__server__DISABLE_SSH: "true" + GITEA__server__START_SSH_SERVER: "false" + GITEA__service__DISABLE_REGISTRATION: ${DISABLE_REGISTRATION} + GITEA__mailer__ENABLED: "false" + volumes: [ "data:/var/lib/gitea" ] + +volumes: + data: diff --git a/apps/glitchtip/README.md b/apps/glitchtip/README.md new file mode 100644 index 0000000..aaf804f --- /dev/null +++ b/apps/glitchtip/README.md @@ -0,0 +1,17 @@ +## First login + +The first person to register becomes the server admin, so until you've done that only you can open the app. Open it from your Cottage dashboard, choose **Register**, create your account and your organization, then choose **Done** on the app's page so anyone you share the address with can reach it. + +Sign-ups are closed to everyone after you. To bring in a teammate, turn on **Allow anyone to sign up** in the app's settings on Cottage, invite them from your organization's **Members** page, and send them the invite link GlitchTip shows. Turn sign-ups off again once they've joined. + +## Send your first error + +Choose **Create project**, pick your platform, and copy the DSN it shows. Paste it into the Sentry SDK setup for your app, for example `Sentry.init({ dsn: "…" })`. Errors start appearing as issues within seconds. + +## Notifications + +Under each project's **Settings → Alerts**, add a webhook for Discord, Slack, Microsoft Teams, ntfy or any URL. Outbound mail ports are blocked on Cottage, so email alerts and invite emails won't send; use webhooks and invite links instead. + +## Export your data + +Issues and events can be read through GlitchTip's Sentry-compatible API with a token from **Profile → Auth tokens**. Cottage also keeps nightly backups of the whole app, including its database. diff --git a/apps/glitchtip/cottage.yml b/apps/glitchtip/cottage.yml new file mode 100644 index 0000000..6a0f969 --- /dev/null +++ b/apps/glitchtip/cottage.yml @@ -0,0 +1,18 @@ +name: GlitchTip +tagline: Catch your app's errors before your users report them. +category: Developer tools +description: >- + Error tracking that works with the open Sentry SDKs for JavaScript, Python, + Go, PHP, Ruby and more. Group errors into issues, see stack traces and + releases, watch performance, and run simple uptime checks, all in one place. +upstream: https://gitlab.com/glitchtip/glitchtip-backend +website: https://glitchtip.com +license: MIT +images: + - ref: glitchtip/glitchtip:7.0.0 + digest: sha256:c245745b4179667da3aebd73fb8d4f1fd918f7d68ba07d1fd73ea688933b6e01 + - ref: postgres:18.7-alpine + digest: sha256:0115267ab5a509022df9319c77be365cef335adb71556c75f60f5360ee247e71 +mobile_apps: false +# The first account to register becomes the server admin. +first_visit_claims_admin: true diff --git a/apps/glitchtip/icon.svg b/apps/glitchtip/icon.svg new file mode 100644 index 0000000..b894fc5 --- /dev/null +++ b/apps/glitchtip/icon.svg @@ -0,0 +1 @@ + diff --git a/apps/glitchtip/template.yml b/apps/glitchtip/template.yml new file mode 100644 index 0000000..4f75038 --- /dev/null +++ b/apps/glitchtip/template.yml @@ -0,0 +1,54 @@ +# GlitchTip: error tracking, compatible with the Sentry SDKs, with PostgreSQL for storage. +x-harbor: + slug: glitchtip + name: GlitchTip + description: Sentry-compatible error tracking and uptime monitoring. + version: "7.0.0-c1" + primary: { service: app, port: 8000 } + health_path: /_health/ + default_resources: { cpu_millis: 500, memory_mb: 1024, storage_mb: 5120 } + min_resources: { cpu_millis: 250, memory_mb: 768, storage_mb: 1024 } + weights: { app: 3, db: 2 } + volumes: + uploads: { uid: 5000, gid: 5000, mode: "0750" } + db_data: { uid: 70, gid: 70, mode: "0700" } + parameters: + - { key: SECRET_KEY, label: Session signing secret, type: string, secret: true, generate: random32 } + - { key: DB_PASSWORD, label: Database password, type: string, secret: true, generate: random32 } + - { key: ENABLE_USER_REGISTRATION, label: Allow anyone to sign up, type: bool, default: "false", editable: true } + +services: + app: + image: glitchtip/glitchtip:7.0.0 + user: "5000:5000" + depends_on: + db: { condition: service_healthy } + environment: + DATABASE_URL: postgres://glitchtip:${DB_PASSWORD}@db:5432/glitchtip + # Without Valkey, GlitchTip keeps its cache and task queue in PostgreSQL. + VALKEY_URL: "" + SECRET_KEY: ${SECRET_KEY} + GLITCHTIP_DOMAIN: ${HARBOR_PUBLIC_URL} + CSRF_TRUSTED_ORIGINS: ${HARBOR_PUBLIC_URL} + # The first account can always register; this governs everyone after. + ENABLE_USER_REGISTRATION: ${ENABLE_USER_REGISTRATION} + ENABLE_ORGANIZATION_CREATION: "false" + volumes: [ "uploads:/code/uploads" ] + db: + image: postgres:18.7-alpine + user: "70:70" + # GlitchTip partitions its event tables; its install guide raises this limit. + command: [ "postgres", "-c", "max_locks_per_transaction=512" ] + environment: + POSTGRES_USER: glitchtip + POSTGRES_DB: glitchtip + POSTGRES_PASSWORD: ${DB_PASSWORD} + volumes: [ "db_data:/var/lib/postgresql" ] + healthcheck: + test: [ "CMD", "pg_isready", "-U", "glitchtip", "-d", "glitchtip" ] + interval: 5s + retries: 20 + +volumes: + uploads: + db_data: diff --git a/apps/gotify/README.md b/apps/gotify/README.md new file mode 100644 index 0000000..7f1d6ca --- /dev/null +++ b/apps/gotify/README.md @@ -0,0 +1,19 @@ +## First login + +Sign in as `admin` with the **Admin password** from the app's Overview tab. Change it under **Users** once you're in, if you like. Cottage only uses that password when the app first starts. + +New sign-ups are off. Add people yourself under **Users**. + +## Send your first message + +Under **Apps**, choose **Create application** and copy its token. Then, from any machine: + +```sh +curl "https://your-app-address/message?token=" -F "title=Hello" -F "message=It works" +``` + +To get messages on your phone, install the Gotify app for Android and sign in with your app's address, starting with `https://`. There's no iPhone app; the web app works in any browser. + +## Export your data + +Gotify has no export button, but its API returns everything as JSON. Create a token under **Clients**, then fetch `/message?limit=200&token=` (follow the `next` link for older messages) and `/application?token=`. Cottage also keeps nightly backups of the whole app. diff --git a/apps/gotify/cottage.yml b/apps/gotify/cottage.yml new file mode 100644 index 0000000..e30340f --- /dev/null +++ b/apps/gotify/cottage.yml @@ -0,0 +1,14 @@ +name: Gotify +tagline: Send push notifications to your phone from anything that can make a web request. +category: Communication +description: >- + A small notification server with a web app and an Android app. Scripts, + servers and other apps send a message with one HTTP request, and it shows up + on your devices right away, with priorities and per-app channels. +upstream: https://github.com/gotify/server +website: https://gotify.net +license: MIT +images: + - ref: gotify/server:3.1.1 + digest: sha256:44fc5bbd1c0618878e33073d38c2c13126b48f245c3fe12236b1da48eb203b86 +mobile_apps: true diff --git a/apps/gotify/icon.svg b/apps/gotify/icon.svg new file mode 100644 index 0000000..bea5873 --- /dev/null +++ b/apps/gotify/icon.svg @@ -0,0 +1 @@ + diff --git a/apps/gotify/template.yml b/apps/gotify/template.yml new file mode 100644 index 0000000..013fcd0 --- /dev/null +++ b/apps/gotify/template.yml @@ -0,0 +1,30 @@ +# Gotify: a simple server for sending and receiving push notifications. +x-harbor: + slug: gotify + name: Gotify + description: Self-hosted push notification server. + version: "3.1.1-c1" + primary: { service: app, port: 8080 } + health_path: /health + default_resources: { cpu_millis: 250, memory_mb: 128, storage_mb: 5120 } + min_resources: { cpu_millis: 100, memory_mb: 64, storage_mb: 1024 } + volumes: + data: { uid: 1000, gid: 1000, mode: "0750" } + parameters: + - { key: ADMIN_PASSWORD, label: Admin password, type: string, secret: true, generate: random32 } + +services: + app: + image: gotify/server:3.1.1 + user: "1000:1000" + environment: + # Above 1024 so it can listen without root. + GOTIFY_SERVER_PORT: "8080" + # Only used to create the admin account on first start. + GOTIFY_DEFAULTUSER_NAME: admin + GOTIFY_DEFAULTUSER_PASS: ${ADMIN_PASSWORD} + GOTIFY_REGISTRATION: "false" + volumes: [ "data:/app/data" ] + +volumes: + data: diff --git a/apps/ntfy/README.md b/apps/ntfy/README.md new file mode 100644 index 0000000..618e7f7 --- /dev/null +++ b/apps/ntfy/README.md @@ -0,0 +1,21 @@ +## First login + +Choose **Sign in** and use `admin` with the **Admin password** from the app's Overview tab. Cottage only uses that password when the app first starts; change it later under **Account**. + +Topics on your app are private. Anyone who isn't signed in, and has no token, can't publish or subscribe. New sign-ups are off. + +## Send your first notification + +Under **Account → Access tokens**, create a token. Then, from any machine: + +```sh +curl -H "Authorization: Bearer " -d "Backup finished" https://your-app-address/backups +``` + +Subscribe to the `backups` topic in the web app, or in the ntfy app for Android or iPhone: add your app's address as the default server (or when you subscribe) and sign in with the same account. On iPhone, instant notifications are relayed through ntfy.sh, which only sees a wake-up signal, not your messages. + +Outbound mail ports are blocked on Cottage, so ntfy can't forward notifications to email. + +## Export your data + +ntfy keeps recent messages for a short while, not forever, so there's little to export. Fetch a topic's cached messages as JSON with `curl -H "Authorization: Bearer " "https://your-app-address//json?poll=1&since=all"`. Cottage also keeps nightly backups of the whole app. diff --git a/apps/ntfy/cottage.yml b/apps/ntfy/cottage.yml new file mode 100644 index 0000000..2dbc3d0 --- /dev/null +++ b/apps/ntfy/cottage.yml @@ -0,0 +1,14 @@ +name: ntfy +tagline: Push notifications to your phone from a script, with one curl command. +category: Communication +description: >- + A notification server you publish to with a plain HTTP PUT or POST. Subscribe + to topics from the web app or the Android and iPhone apps, and get alerts from + your scripts, servers, backups and other self-hosted apps. +upstream: https://github.com/binwiederhier/ntfy +website: https://ntfy.sh +license: Apache-2.0 OR GPL-2.0-only +images: + - ref: binwiederhier/ntfy:v2.38.1 + digest: sha256:038da2be5e668fee6d36a62884eea48975e1b71c29a56964e5298c1b9165a573 +mobile_apps: true diff --git a/apps/ntfy/icon.svg b/apps/ntfy/icon.svg new file mode 100644 index 0000000..7c0a838 --- /dev/null +++ b/apps/ntfy/icon.svg @@ -0,0 +1 @@ + diff --git a/apps/ntfy/template.yml b/apps/ntfy/template.yml new file mode 100644 index 0000000..605f1a9 --- /dev/null +++ b/apps/ntfy/template.yml @@ -0,0 +1,51 @@ +# ntfy: send push notifications to your phone or desktop with a simple HTTP request. +x-harbor: + slug: ntfy + name: ntfy + description: Push notifications over plain HTTP. + version: "2.38.1-c1" + primary: { service: app, port: 8080 } + health_path: /v1/health + default_resources: { cpu_millis: 250, memory_mb: 128, storage_mb: 5120 } + min_resources: { cpu_millis: 100, memory_mb: 64, storage_mb: 1024 } + volumes: + data: { uid: 1000, gid: 1000, mode: "0750" } + parameters: + - { key: ADMIN_PASSWORD, label: Admin password, type: string, secret: true, generate: random32 } + +services: + app: + image: binwiederhier/ntfy:v2.38.1 + user: "1000:1000" + # ntfy creates its user database the first time it serves, and `ntfy user add` + # needs that database. So on first start, run the server until it answers, + # stop it, then add the admin (skipped once it exists) and serve for real. + entrypoint: [ "/bin/sh", "-c" ] + command: + - | + if [ ! -f "$$NTFY_AUTH_FILE" ]; then + ntfy serve & pid=$$! + until wget -q -O /dev/null http://127.0.0.1:8080/v1/health; do sleep 1; done + kill $$pid; wait $$pid + fi + ntfy user add --role=admin --ignore-exists admin && exec ntfy serve + environment: + NTFY_PASSWORD: ${ADMIN_PASSWORD} + NTFY_BASE_URL: ${HARBOR_PUBLIC_URL} + # Above 1024 so it can listen without root. + NTFY_LISTEN_HTTP: ":8080" + NTFY_BEHIND_PROXY: "true" + NTFY_CACHE_FILE: /var/lib/ntfy/cache.db + NTFY_AUTH_FILE: /var/lib/ntfy/user.db + NTFY_ATTACHMENT_CACHE_DIR: /var/lib/ntfy/attachments + # Topics are private: only signed-in users (and tokens) can publish or subscribe. + NTFY_AUTH_DEFAULT_ACCESS: deny-all + NTFY_ENABLE_LOGIN: "true" + NTFY_ENABLE_SIGNUP: "false" + # Lets the iOS app get instant notifications: ntfy.sh relays only a wake-up + # with the message ID, never the message itself. + NTFY_UPSTREAM_BASE_URL: https://ntfy.sh + volumes: [ "data:/var/lib/ntfy" ] + +volumes: + data: diff --git a/apps/umami/README.md b/apps/umami/README.md new file mode 100644 index 0000000..08ad223 --- /dev/null +++ b/apps/umami/README.md @@ -0,0 +1,15 @@ +## First login + +Sign in as `admin` with the **Admin password** from the app's Overview tab. Cottage sets that password when the app first starts; change it later under **Settings → Profile**, where you can also turn on two-factor sign-in. + +Add teammates under **Settings → Users**. Umami doesn't send email, so share their username and password with them yourself. + +## Track your first website + +Under **Settings → Websites**, choose **Add website**, enter its name and domain, then open **Tracking code**. Paste the `