From a4cfef953b8a684e0e4e4ca076bcb044d3272f85 Mon Sep 17 00:00:00 2001 From: FoggyMtnDrifter Date: Sun, 22 Nov 2026 11:29:36 -0500 Subject: [PATCH] Add seven business and analytics apps (batch 11) (#15) * Add DocuSeal * Add Activepieces * Add Twenty * Add Snipe-IT * Add Metabase * Add Monica * Add Matomo --- apps/activepieces/README.md | 15 ++++++ apps/activepieces/cottage.yml | 21 ++++++++ apps/activepieces/icon.svg | 1 + apps/activepieces/template.yml | 86 ++++++++++++++++++++++++++++++ apps/docuseal/README.md | 15 ++++++ apps/docuseal/cottage.yml | 19 +++++++ apps/docuseal/icon.svg | 1 + apps/docuseal/template.yml | 45 ++++++++++++++++ apps/matomo/README.md | 15 ++++++ apps/matomo/cottage.yml | 19 +++++++ apps/matomo/icon.svg | 1 + apps/matomo/template.yml | 74 ++++++++++++++++++++++++++ apps/metabase/README.md | 15 ++++++ apps/metabase/cottage.yml | 19 +++++++ apps/metabase/icon.svg | 1 + apps/metabase/template.yml | 54 +++++++++++++++++++ apps/monica/README.md | 15 ++++++ apps/monica/cottage.yml | 19 +++++++ apps/monica/icon.svg | 1 + apps/monica/template.yml | 81 ++++++++++++++++++++++++++++ apps/snipe-it/README.md | 15 ++++++ apps/snipe-it/cottage.yml | 19 +++++++ apps/snipe-it/icon.svg | 1 + apps/snipe-it/template.yml | 97 ++++++++++++++++++++++++++++++++++ apps/twenty/README.md | 13 +++++ apps/twenty/cottage.yml | 21 ++++++++ apps/twenty/icon.svg | 1 + apps/twenty/template.yml | 93 ++++++++++++++++++++++++++++++++ 28 files changed, 777 insertions(+) create mode 100644 apps/activepieces/README.md create mode 100644 apps/activepieces/cottage.yml create mode 100644 apps/activepieces/icon.svg create mode 100644 apps/activepieces/template.yml create mode 100644 apps/docuseal/README.md create mode 100644 apps/docuseal/cottage.yml create mode 100644 apps/docuseal/icon.svg create mode 100644 apps/docuseal/template.yml create mode 100644 apps/matomo/README.md create mode 100644 apps/matomo/cottage.yml create mode 100644 apps/matomo/icon.svg create mode 100644 apps/matomo/template.yml create mode 100644 apps/metabase/README.md create mode 100644 apps/metabase/cottage.yml create mode 100644 apps/metabase/icon.svg create mode 100644 apps/metabase/template.yml create mode 100644 apps/monica/README.md create mode 100644 apps/monica/cottage.yml create mode 100644 apps/monica/icon.svg create mode 100644 apps/monica/template.yml create mode 100644 apps/snipe-it/README.md create mode 100644 apps/snipe-it/cottage.yml create mode 100644 apps/snipe-it/icon.svg create mode 100644 apps/snipe-it/template.yml create mode 100644 apps/twenty/README.md create mode 100644 apps/twenty/cottage.yml create mode 100644 apps/twenty/icon.svg create mode 100644 apps/twenty/template.yml diff --git a/apps/activepieces/README.md b/apps/activepieces/README.md new file mode 100644 index 0000000..3bee7ff --- /dev/null +++ b/apps/activepieces/README.md @@ -0,0 +1,15 @@ +## First login + +While Cottage keeps the app private to you, open it and fill in the sign-up form: the first account becomes the admin. Then come back to the app's page in the dashboard and choose **Done** so webhooks and your teammates can reach it. + +After that, nobody can sign up without an invitation. Invite teammates from the admin area's **Users** page and send them the invitation link yourself: outgoing mail is blocked on Cottage, so Activepieces can't email it. + +## Build your first flow + +Choose **New flow**, pick a trigger (a schedule, a webhook, or an event in an app such as Google Sheets or Slack), then add the steps that should follow. Connections to other services are stored encrypted with the **Encryption key for connections** from the app's Overview tab. Test each step, then turn the flow on. + +Code steps run inside the app itself, so only give edit access to people you trust. + +## Export your data + +Open a flow's menu and choose **Export** for a JSON file you can import into any Activepieces instance. Cottage also keeps nightly backups of the whole app, including its database. diff --git a/apps/activepieces/cottage.yml b/apps/activepieces/cottage.yml new file mode 100644 index 0000000..c8b9189 --- /dev/null +++ b/apps/activepieces/cottage.yml @@ -0,0 +1,21 @@ +name: Activepieces +tagline: Automate busywork across your apps with no-code flows. +category: Productivity +description: >- + Build flows that run when something happens in one app and act in others: + new form entries to a spreadsheet, chat alerts for new orders, scheduled + reports. Hundreds of ready-made pieces, plus webhooks, code steps, branches + and loops. Community edition, without enterprise features. +upstream: https://github.com/activepieces/activepieces +website: https://www.activepieces.com +license: MIT +images: + - ref: ghcr.io/activepieces/activepieces:0.93.0 + digest: sha256:151c2a4326c30a6a8086297136644da9b58072212c35bca7c87dcb5724e7d687 + - ref: postgres:18.7-alpine + digest: sha256:0115267ab5a509022df9319c77be365cef335adb71556c75f60f5360ee247e71 + - ref: redis:8.10.3-alpine + digest: sha256:7958cfbb9d152f87dadfbc89f1b0b15938f0b81ff8982feb327476f4911935c3 +mobile_apps: false +# The first account to sign up becomes the platform admin. +first_visit_claims_admin: true diff --git a/apps/activepieces/icon.svg b/apps/activepieces/icon.svg new file mode 100644 index 0000000..0d61e07 --- /dev/null +++ b/apps/activepieces/icon.svg @@ -0,0 +1 @@ + diff --git a/apps/activepieces/template.yml b/apps/activepieces/template.yml new file mode 100644 index 0000000..11e1847 --- /dev/null +++ b/apps/activepieces/template.yml @@ -0,0 +1,86 @@ +# Activepieces: no-code automation. App and worker in one container (the image's +# default WORKER_AND_APP mode), with PostgreSQL and Redis. Community edition only: +# no licence key is set. +x-harbor: + slug: activepieces + name: Activepieces + description: Automate work across your apps with no-code flows. + version: "0.93.0-c1" + primary: { service: app, port: 8080 } + health_path: /api/v1/health + default_resources: { cpu_millis: 1000, memory_mb: 2048, storage_mb: 10240 } + min_resources: { cpu_millis: 500, memory_mb: 1280, storage_mb: 2048 } + weights: { app: 6, db: 3, redis: 1 } + volumes: + cache: { uid: 1000, gid: 1000, mode: "0750" } + db_data: { uid: 70, gid: 70, mode: "0700" } + redis_data: { uid: 999, gid: 1000, mode: "0700" } + parameters: + - { key: AP_ENCRYPTION_KEY, label: Encryption key for connections, type: string, secret: true, generate: hex32 } + - { key: AP_JWT_SECRET, label: Session signing secret, type: string, secret: true, generate: random32 } + - { key: DB_PASSWORD, label: Database password, type: string, secret: true, generate: random32 } + +services: + app: + image: ghcr.io/activepieces/activepieces:0.93.0 + # The node user from the image's base; port 8080 instead of 80 so it needn't be root. + user: "1000:1000" + depends_on: + db: { condition: service_healthy } + redis: { condition: service_healthy } + environment: + AP_PORT: "8080" + AP_EDITION: ce + AP_ENVIRONMENT: prod + AP_FRONTEND_URL: ${HARBOR_PUBLIC_URL} + AP_ENCRYPTION_KEY: ${AP_ENCRYPTION_KEY} + AP_JWT_SECRET: ${AP_JWT_SECRET} + AP_POSTGRES_HOST: db + AP_POSTGRES_PORT: "5432" + AP_POSTGRES_DATABASE: activepieces + AP_POSTGRES_USERNAME: activepieces + AP_POSTGRES_PASSWORD: ${DB_PASSWORD} + AP_REDIS_HOST: redis + AP_REDIS_PORT: "6379" + # The sandboxed modes need a privileged container; flows run in the app's own. + AP_EXECUTION_MODE: UNSANDBOXED + AP_CACHE_BASE_PATH: /usr/src/app/cache + HOME: /usr/src/app/cache + AP_TELEMETRY_ENABLED: "false" + AP_WEBHOOK_TIMEOUT_SECONDS: "30" + AP_TRIGGER_DEFAULT_POLL_INTERVAL: "5" + AP_FLOW_TIMEOUT_SECONDS: "600" + # Installed pieces and their packages. + volumes: [ "cache:/usr/src/app/cache" ] + healthcheck: + test: [ "CMD", "curl", "-fsS", "http://localhost:8080/api/v1/health" ] + interval: 10s + timeout: 5s + start_period: 60s + retries: 5 + db: + image: postgres:18.7-alpine + user: "70:70" + environment: + POSTGRES_USER: activepieces + POSTGRES_DB: activepieces + POSTGRES_PASSWORD: ${DB_PASSWORD} + volumes: [ "db_data:/var/lib/postgresql" ] + healthcheck: + test: [ "CMD", "pg_isready", "-U", "activepieces", "-d", "activepieces" ] + interval: 5s + retries: 20 + redis: + image: redis:8.10.3-alpine + user: "999:1000" + command: [ "redis-server", "--appendonly", "yes", "--maxmemory-policy", "noeviction" ] + volumes: [ "redis_data:/data" ] + healthcheck: + test: [ "CMD", "redis-cli", "ping" ] + interval: 5s + retries: 30 + +volumes: + cache: + db_data: + redis_data: diff --git a/apps/docuseal/README.md b/apps/docuseal/README.md new file mode 100644 index 0000000..c0d76be --- /dev/null +++ b/apps/docuseal/README.md @@ -0,0 +1,15 @@ +## First login + +While Cottage keeps the app private to you, open it and fill in the setup page: your name, company, email and a password become the admin account, and the app's address is filled in for you. Then come back to the app's page in the dashboard and choose **Done** so the people you send documents to can reach it. + +Nobody can sign up on their own. Add teammates under **Settings → Users**. + +## Send your first document + +Choose **Upload** and pick a PDF or Word file, then drag signature, date and text fields onto the pages and assign each to a signer. Choose **Send**, add the signers, and copy their signing links. + +Outgoing mail is blocked on Cottage, so DocuSeal can't email signing requests or completed copies. Share each signer's link yourself, by your own email or chat, and download the signed PDF from the submission when everyone has finished. + +## Export your data + +Every completed submission has a **Download** button for the signed PDF and its audit log. Templates can be downloaded from their page too. Cottage also keeps nightly backups of the whole app, including its database and uploaded files. diff --git a/apps/docuseal/cottage.yml b/apps/docuseal/cottage.yml new file mode 100644 index 0000000..31748ff --- /dev/null +++ b/apps/docuseal/cottage.yml @@ -0,0 +1,19 @@ +name: DocuSeal +tagline: Send documents for signature and keep every signed copy yourself. +category: Business +description: >- + Upload a PDF or Word file, drag signature, date, text and checkbox fields onto + it, and share a signing link. Signers fill it in from any device, and you get + a completed PDF with an audit trail. Reuse templates for contracts, forms and + agreements your team sends often. +upstream: https://github.com/docusealco/docuseal +website: https://www.docuseal.com +license: AGPL-3.0-only +images: + - ref: docuseal/docuseal:3.3.8 + digest: sha256:d67335c0cb3142818a39878ab67a0d0af2a653220e2203b042796dd1321a4a9c + - ref: postgres:18.7-alpine + digest: sha256:0115267ab5a509022df9319c77be365cef335adb71556c75f60f5360ee247e71 +mobile_apps: false +# DocuSeal's setup page creates the first admin account. +first_visit_claims_admin: true diff --git a/apps/docuseal/icon.svg b/apps/docuseal/icon.svg new file mode 100644 index 0000000..7ab4520 --- /dev/null +++ b/apps/docuseal/icon.svg @@ -0,0 +1 @@ + diff --git a/apps/docuseal/template.yml b/apps/docuseal/template.yml new file mode 100644 index 0000000..6e01da8 --- /dev/null +++ b/apps/docuseal/template.yml @@ -0,0 +1,45 @@ +# DocuSeal: fill and sign PDF documents online, with PostgreSQL for storage. +x-harbor: + slug: docuseal + name: DocuSeal + description: Create, fill and sign digital documents. + version: "3.3.8-c1" + primary: { service: app, port: 3000 } + health_path: /up + default_resources: { cpu_millis: 500, memory_mb: 1024, storage_mb: 10240 } + min_resources: { cpu_millis: 250, memory_mb: 640, storage_mb: 1024 } + weights: { app: 3, db: 1 } + volumes: + data: { uid: 2000, gid: 2000, mode: "0750" } + db_data: { uid: 70, gid: 70, mode: "0700" } + parameters: + - { key: SECRET_KEY_BASE, label: Session signing secret, type: string, secret: true, generate: random32 } + - { key: DB_PASSWORD, label: Database password, type: string, secret: true, generate: random32 } + +services: + app: + image: docuseal/docuseal:3.3.8 + user: "2000:2000" + depends_on: + db: { condition: service_healthy } + environment: + DATABASE_URL: postgresql://docuseal:${DB_PASSWORD}@db:5432/docuseal + SECRET_KEY_BASE: ${SECRET_KEY_BASE} + # Uploaded templates, signed documents and signatures live here. + volumes: [ "data:/data/docuseal" ] + db: + image: postgres:18.7-alpine + user: "70:70" + environment: + POSTGRES_USER: docuseal + POSTGRES_DB: docuseal + POSTGRES_PASSWORD: ${DB_PASSWORD} + volumes: [ "db_data:/var/lib/postgresql" ] + healthcheck: + test: [ "CMD", "pg_isready", "-U", "docuseal", "-d", "docuseal" ] + interval: 5s + retries: 20 + +volumes: + data: + db_data: diff --git a/apps/matomo/README.md b/apps/matomo/README.md new file mode 100644 index 0000000..43f1813 --- /dev/null +++ b/apps/matomo/README.md @@ -0,0 +1,15 @@ +## First login + +While Cottage keeps the app private to you, open it and step through Matomo's installer. The database details are already filled in, so choose **Next** on that page. Then create your superuser (username, password and email), and add the first website you want to track. When the installer finishes, come back to the app's page in the dashboard and choose **Done**, so visitors' browsers can reach the tracker. + +Nobody can sign up on their own. Add people under **Administration → System → Users**, and give them a password yourself: outgoing mail is blocked on Cottage, so Matomo can't send invitations, password resets or scheduled email reports. + +## Start tracking + +The installer shows a JavaScript tracking code. Paste it into the `` of every page of your site, or use one of Matomo's plugins for WordPress and other platforms. Visits appear under **Visitors → Visits log** within a minute; the summary reports are rebuilt every hour. + +For a cookie-free setup, open **Administration → Privacy → Anonymize data**. Matomo's official mobile app for iOS and Android works with your app's address too. + +## Export your data + +Every report has an export icon below it for CSV, TSV, XML or JSON. Cottage also keeps nightly backups of the whole app, including its database. diff --git a/apps/matomo/cottage.yml b/apps/matomo/cottage.yml new file mode 100644 index 0000000..b3bdb27 --- /dev/null +++ b/apps/matomo/cottage.yml @@ -0,0 +1,19 @@ +name: Matomo +tagline: Full-featured web analytics, with every visit kept on your own server. +category: Analytics +description: >- + A Google Analytics alternative that gives you visits, sources, pages, goals, + ecommerce, funnels and custom reports for as many websites as you like. Your + visitors' data stays with you, with built-in tools for anonymising IP + addresses and honouring opt-outs. +upstream: https://github.com/matomo-org/matomo +website: https://matomo.org +license: GPL-3.0-or-later +images: + - ref: matomo:5.14.3-apache + digest: sha256:ba13c4fc70f67c5b68a441cba06ae12904e58318ba86fcbf6603bd4bf5ee35c6 + - ref: mariadb:11.4.13 + digest: sha256:a8992b5e5404d11e03c54a31d0c1bdea3fd116d283aa6d1a627551f29045309b +mobile_apps: true +# Matomo's installer creates the superuser on first visit. +first_visit_claims_admin: true diff --git a/apps/matomo/icon.svg b/apps/matomo/icon.svg new file mode 100644 index 0000000..d5eb021 --- /dev/null +++ b/apps/matomo/icon.svg @@ -0,0 +1 @@ + diff --git a/apps/matomo/template.yml b/apps/matomo/template.yml new file mode 100644 index 0000000..10cf0c5 --- /dev/null +++ b/apps/matomo/template.yml @@ -0,0 +1,74 @@ +# Matomo: web analytics, with MariaDB for storage. +# The official image copies Matomo into /var/www/html only on first start, so +# later image updates would never reach the code. Here, as www-data, every start +# copies the image's code over the volume (config.ini.php and other files you +# create are kept), applies any database update, runs report archiving hourly, +# and serves Apache on 8080 from copies of the stock config with only the port +# changed. +x-harbor: + slug: matomo + name: Matomo + description: Web analytics that keeps your visitors' data in your hands. + version: "5.14.3-c1" + primary: { service: app, port: 8080 } + # A static file: PHP pages here would belong to the installer until setup is done. + health_path: /matomo.js + default_resources: { cpu_millis: 500, memory_mb: 1024, storage_mb: 10240 } + min_resources: { cpu_millis: 250, memory_mb: 512, storage_mb: 2048 } + weights: { app: 3, db: 2 } + volumes: + html: { uid: 33, gid: 33, mode: "0750" } + db_data: { uid: 999, gid: 999, mode: "0700" } + parameters: + - { key: DB_PASSWORD, label: Database password, type: string, secret: true, generate: random32 } + - { key: DB_ROOT_PASSWORD, label: Database root password, type: string, secret: true, generate: random32 } + +services: + app: + image: matomo:5.14.3-apache + user: "33:33" + depends_on: + db: { condition: service_healthy } + environment: + # Filled in on the installer's database step. + MATOMO_DATABASE_HOST: db + MATOMO_DATABASE_ADAPTER: mysql + MATOMO_DATABASE_TABLES_PREFIX: matomo_ + MATOMO_DATABASE_USERNAME: matomo + MATOMO_DATABASE_PASSWORD: ${DB_PASSWORD} + MATOMO_DATABASE_DBNAME: matomo + entrypoint: [ "/bin/bash", "-c" ] + command: + - | + set -e + cd /var/www/html + tar cf - --one-file-system -C /usr/src/matomo . | tar xf - --no-same-owner + if [ -f config/config.ini.php ]; then + php console core:update --yes --no-interaction || true + (while true; do sleep 3600; php console core:archive --no-interaction > /dev/null || true; done) & + fi + sed 's/^Listen 80$$/Listen 8080/' /etc/apache2/ports.conf > /tmp/ports.conf + sed 's/:80>/:8080>/' /etc/apache2/sites-enabled/000-default.conf > /tmp/site.conf + sed -e 's#^Include ports.conf#Include /tmp/ports.conf#' \ + -e 's#^IncludeOptional sites-enabled/\*.conf#Include /tmp/site.conf#' \ + /etc/apache2/apache2.conf > /tmp/apache2.conf + exec apache2-foreground -f /tmp/apache2.conf + volumes: [ "html:/var/www/html" ] + db: + image: mariadb:11.4.13 + user: "999:999" + command: [ "--max-allowed-packet=64M" ] + environment: + MARIADB_DATABASE: matomo + MARIADB_USER: matomo + MARIADB_PASSWORD: ${DB_PASSWORD} + MARIADB_ROOT_PASSWORD: ${DB_ROOT_PASSWORD} + volumes: [ "db_data:/var/lib/mysql" ] + healthcheck: + test: [ "CMD", "healthcheck.sh", "--connect", "--innodb_initialized" ] + interval: 5s + retries: 20 + +volumes: + html: + db_data: diff --git a/apps/metabase/README.md b/apps/metabase/README.md new file mode 100644 index 0000000..eb0acf0 --- /dev/null +++ b/apps/metabase/README.md @@ -0,0 +1,15 @@ +## First login + +Metabase takes a minute or two to start the first time. While Cottage keeps the app private to you, open it and follow the setup steps: your name, email and a password become the first admin account. You can skip adding data for now. When the wizard finishes, come back to the app's page in the dashboard and choose **Done** so your teammates can reach it. + +Nobody can sign up on their own. Add people under **Admin settings → People → Invite someone**. Outgoing mail is blocked on Cottage, so Metabase shows you a temporary password to pass on yourself. + +## Connect your data + +Under **Admin settings → Databases**, choose **Add database** and enter the address and credentials of the database you want to explore. Use a read-only account where you can. Metabase stores those credentials encrypted with the **Encryption key for saved connections** from the app's Overview tab. + +Then choose **New → Question** to build a chart with the query builder, or **New → SQL query** to write your own, and save the results to a dashboard. + +## Export your data + +Any question's results can be downloaded as CSV, XLSX or JSON from its download button, and dashboards as PDF. Your questions, dashboards and settings live in the app's own PostgreSQL database, which Cottage includes in its nightly backups of the whole app. diff --git a/apps/metabase/cottage.yml b/apps/metabase/cottage.yml new file mode 100644 index 0000000..f4db848 --- /dev/null +++ b/apps/metabase/cottage.yml @@ -0,0 +1,19 @@ +name: Metabase +tagline: Ask questions of your data and share the answers as dashboards. +category: Analytics +description: >- + Connect PostgreSQL, MySQL, SQLite and other databases, then explore them with a + point-and-click query builder or plain SQL. Turn answers into charts, gather + them on dashboards, and share them with your team. This is the open-source + edition of Metabase. +upstream: https://github.com/metabase/metabase +website: https://www.metabase.com +license: AGPL-3.0-only +images: + - ref: metabase/metabase:v0.65.6 + digest: sha256:21a0c25c12a9d6334c9efb3d74db9973707baaf543ae6abb43bd6d42818e01af + - ref: postgres:18.7-alpine + digest: sha256:0115267ab5a509022df9319c77be365cef335adb71556c75f60f5360ee247e71 +mobile_apps: false +# Metabase's setup wizard creates the first admin account. +first_visit_claims_admin: true diff --git a/apps/metabase/icon.svg b/apps/metabase/icon.svg new file mode 100644 index 0000000..09f84ae --- /dev/null +++ b/apps/metabase/icon.svg @@ -0,0 +1 @@ + diff --git a/apps/metabase/template.yml b/apps/metabase/template.yml new file mode 100644 index 0000000..5c3fa1b --- /dev/null +++ b/apps/metabase/template.yml @@ -0,0 +1,54 @@ +# Metabase: business intelligence and dashboards, with PostgreSQL for its own settings. +# This is the open-source edition (metabase/metabase, AGPL), never metabase-enterprise. +x-harbor: + slug: metabase + name: Metabase + description: Ask questions of your data and share dashboards. + version: "0.65.6-c1" + primary: { service: app, port: 3000 } + health_path: /api/health + default_resources: { cpu_millis: 1000, memory_mb: 2048, storage_mb: 5120 } + min_resources: { cpu_millis: 500, memory_mb: 1280, storage_mb: 1024 } + weights: { app: 4, db: 1 } + volumes: + db_data: { uid: 70, gid: 70, mode: "0700" } + parameters: + - { key: DB_PASSWORD, label: Database password, type: string, secret: true, generate: random32 } + - { key: ENCRYPTION_KEY, label: Encryption key for saved connections, type: string, secret: true, generate: random32 } + +services: + app: + image: metabase/metabase:v0.65.6 + # The image's start script runs Metabase directly when it isn't root. + user: "2000:2000" + depends_on: + db: { condition: service_healthy } + environment: + MB_DB_TYPE: postgres + MB_DB_HOST: db + MB_DB_PORT: "5432" + MB_DB_DBNAME: metabase + MB_DB_USER: metabase + MB_DB_PASS: ${DB_PASSWORD} + MB_SITE_URL: ${HARBOR_PUBLIC_URL} + # Encrypts the database passwords and API keys Metabase stores for your data sources. + MB_ENCRYPTION_SECRET_KEY: ${ENCRYPTION_KEY} + MB_ANON_TRACKING_ENABLED: "false" + MB_CHECK_FOR_UPDATES: "false" + # Let the Java heap use most of the memory Cottage gives the app. + JAVA_OPTS: "-XX:MaxRAMPercentage=70" + db: + image: postgres:18.7-alpine + user: "70:70" + environment: + POSTGRES_USER: metabase + POSTGRES_DB: metabase + POSTGRES_PASSWORD: ${DB_PASSWORD} + volumes: [ "db_data:/var/lib/postgresql" ] + healthcheck: + test: [ "CMD", "pg_isready", "-U", "metabase", "-d", "metabase" ] + interval: 5s + retries: 20 + +volumes: + db_data: diff --git a/apps/monica/README.md b/apps/monica/README.md new file mode 100644 index 0000000..ca0dbfa --- /dev/null +++ b/apps/monica/README.md @@ -0,0 +1,15 @@ +## First login + +While Cottage keeps the app private to you, open it and fill in the registration form: the first account owns this Monica. Then come back to the app's page in the dashboard and choose **Done**. + +After that first account, sign-ups are off. You can turn them back on with **Turn off sign-ups after the first account** in the app's settings, but then anyone who finds your address can make an account of their own. + +Outgoing mail is blocked on Cottage, so Monica can't email reminders or invitations. Reminders still show on your dashboard, and with the calendar sync below they reach your phone too. + +## Sync with your phone + +Monica speaks CardDAV and CalDAV. On iPhone, add a CardDAV account under **Settings → Contacts → Accounts** with your app's address followed by `/dav`, your email and password. On Android, use an app such as DAVx⁵ with the same details. If you turned on two-factor sign-in, create an API token under **Settings → API** and use it as the password. + +## Export your data + +Under **Settings → Export data**, choose **Export to SQL** for a full copy of your account, or export a contact as a vCard from its page. Cottage also keeps nightly backups of the whole app, including its database. diff --git a/apps/monica/cottage.yml b/apps/monica/cottage.yml new file mode 100644 index 0000000..c4345a9 --- /dev/null +++ b/apps/monica/cottage.yml @@ -0,0 +1,19 @@ +name: Monica +tagline: Remember what matters about the people you care about. +category: Productivity +description: >- + A personal CRM for your relationships. Note how you met someone, their kids' + names, gift ideas, conversations and debts, and set reminders for birthdays + and catch-ups. Contacts and birthdays sync to your phone over CardDAV and + CalDAV. +upstream: https://github.com/monicahq/monica +website: https://www.monicahq.com +license: AGPL-3.0-only +images: + - ref: monica:4.1.2-apache + digest: sha256:4e39d3401ebae1bb95393d7d79bbfebade3e2573cda6f86a86fce2c8c5f68053 + - ref: mariadb:11.4.13 + digest: sha256:a8992b5e5404d11e03c54a31d0c1bdea3fd116d283aa6d1a627551f29045309b +mobile_apps: false +# The first account to register owns the instance. +first_visit_claims_admin: true diff --git a/apps/monica/icon.svg b/apps/monica/icon.svg new file mode 100644 index 0000000..c28013d --- /dev/null +++ b/apps/monica/icon.svg @@ -0,0 +1 @@ + diff --git a/apps/monica/template.yml b/apps/monica/template.yml new file mode 100644 index 0000000..95173d4 --- /dev/null +++ b/apps/monica/template.yml @@ -0,0 +1,81 @@ +# Monica: a personal CRM, with MariaDB for storage. +# The official image's entrypoint prepares storage and migrates the database, +# then hands over to Apache on port 80. Here it runs as www-data and hands over +# to Apache on 8080 instead, from copies of the stock config with only the port +# changed, with Laravel's scheduler running alongside. +x-harbor: + slug: monica + name: Monica + description: A personal CRM for your friends and family. + version: "4.1.2-c1" + primary: { service: app, port: 8080 } + health_path: /login + default_resources: { cpu_millis: 500, memory_mb: 768, storage_mb: 5120 } + min_resources: { cpu_millis: 250, memory_mb: 512, storage_mb: 1024 } + weights: { app: 3, db: 2 } + volumes: + storage: { uid: 33, gid: 33, mode: "0750" } + db_data: { uid: 999, gid: 999, mode: "0700" } + parameters: + # Laravel's AES-256 key: exactly 32 characters. + - { key: APP_KEY, label: Encryption key, type: string, secret: true, generate: hex32 } + - { key: HASH_SALT, label: ID hashing salt, type: string, secret: true, generate: random32 } + - { key: DB_PASSWORD, label: Database password, type: string, secret: true, generate: random32 } + - { key: DB_ROOT_PASSWORD, label: Database root password, type: string, secret: true, generate: random32 } + - { key: APP_DISABLE_SIGNUP, label: Turn off sign-ups after the first account, type: bool, default: "true", editable: true } + +services: + app: + image: monica:4.1.2-apache + user: "33:33" + depends_on: + db: { condition: service_healthy } + environment: + APP_ENV: production + APP_DEBUG: "false" + APP_KEY: ${APP_KEY} + HASH_SALT: ${HASH_SALT} + APP_URL: ${HARBOR_PUBLIC_URL} + APP_FORCE_URL: "true" + APP_TRUSTED_PROXIES: "*" + # The first account can always register; this governs everyone after. + APP_DISABLE_SIGNUP: ${APP_DISABLE_SIGNUP} + DB_CONNECTION: mysql + DB_HOST: db + DB_PORT: "3306" + DB_DATABASE: monica + DB_USERNAME: monica + DB_PASSWORD: ${DB_PASSWORD} + # Outgoing mail is blocked on Cottage; keep mail in the log instead. + MAIL_MAILER: log + LOG_CHANNEL: stderr + CHECK_VERSION: "false" + entrypoint: [ "/bin/bash", "-c" ] + command: + - | + set -e + sed 's/^Listen 80$$/Listen 8080/' /etc/apache2/ports.conf > /tmp/ports.conf + sed 's/:80>/:8080>/' /etc/apache2/sites-enabled/000-default.conf > /tmp/site.conf + sed -e 's#^Include ports.conf#Include /tmp/ports.conf#' \ + -e 's#^IncludeOptional sites-enabled/\*.conf#Include /tmp/site.conf#' \ + /etc/apache2/apache2.conf > /tmp/apache2.conf + (while true; do sleep 60; php /var/www/html/artisan schedule:run --no-interaction > /dev/null || true; done) & + exec /usr/local/bin/entrypoint.sh apache2-foreground -f /tmp/apache2.conf + volumes: [ "storage:/var/www/html/storage" ] + db: + image: mariadb:11.4.13 + user: "999:999" + environment: + MARIADB_DATABASE: monica + MARIADB_USER: monica + MARIADB_PASSWORD: ${DB_PASSWORD} + MARIADB_ROOT_PASSWORD: ${DB_ROOT_PASSWORD} + volumes: [ "db_data:/var/lib/mysql" ] + healthcheck: + test: [ "CMD", "healthcheck.sh", "--connect", "--innodb_initialized" ] + interval: 5s + retries: 20 + +volumes: + storage: + db_data: diff --git a/apps/snipe-it/README.md b/apps/snipe-it/README.md new file mode 100644 index 0000000..383be0b --- /dev/null +++ b/apps/snipe-it/README.md @@ -0,0 +1,15 @@ +## First login + +While Cottage keeps the app private to you, open it and follow the setup page. After the pre-flight check, choose **Next: Create database tables**, then **Next: Create user** and fill in your site name, email and an admin username and password. When you reach the dashboard, come back to the app's page in Cottage and choose **Done** so your team can reach it. + +Nobody can sign up on their own. Add people under **People → Create new**, and give them a password yourself: outgoing mail is blocked on Cottage, so Snipe-IT can't send welcome or password-reset emails, or alerts for expiring licences. + +## Add your first assets + +Start with the lists the rest depends on: **Settings → Categories**, **Manufacturers** and **Status labels**, then create an asset model (say, "MacBook Air 13-inch") under **Settings → Asset models**. Now **Create new → Asset** adds individual machines, and **Checkout** assigns them to a person or location. + +Already tracking things in a spreadsheet? **Import** takes a CSV of assets, users, licences, accessories or consumables. + +## Export your data + +Every list has an export button above it for CSV, Excel or JSON, and **Reports → Custom asset report** builds a CSV with the columns you choose. Cottage also keeps nightly backups of the whole app, including its database and uploaded files. diff --git a/apps/snipe-it/cottage.yml b/apps/snipe-it/cottage.yml new file mode 100644 index 0000000..310ffe5 --- /dev/null +++ b/apps/snipe-it/cottage.yml @@ -0,0 +1,19 @@ +name: Snipe-IT +tagline: Know who has which laptop, licence and accessory. +category: Business +description: >- + Track your organisation's hardware, software licences, accessories and + consumables. Check items in and out to people or locations, print asset tags + with QR codes, keep maintenance and audit history, and import what you already + have from a spreadsheet. +upstream: https://github.com/grokability/snipe-it +website: https://snipeitapp.com +license: AGPL-3.0-or-later +images: + - ref: snipe/snipe-it:v8.8.4 + digest: sha256:8fb651d27d075441b6201a06d0b44bfb30d48e9149b64d1ebd92ab8c5159b4bb + - ref: mariadb:11.4.13 + digest: sha256:a8992b5e5404d11e03c54a31d0c1bdea3fd116d283aa6d1a627551f29045309b +mobile_apps: false +# Snipe-IT's setup page creates the first admin account. +first_visit_claims_admin: true diff --git a/apps/snipe-it/icon.svg b/apps/snipe-it/icon.svg new file mode 100644 index 0000000..960bff7 --- /dev/null +++ b/apps/snipe-it/icon.svg @@ -0,0 +1 @@ + diff --git a/apps/snipe-it/template.yml b/apps/snipe-it/template.yml new file mode 100644 index 0000000..306bc80 --- /dev/null +++ b/apps/snipe-it/template.yml @@ -0,0 +1,97 @@ +# Snipe-IT: IT asset management, with MariaDB for storage. +# The image's start script edits Apache's config as root and runs Apache on port +# 80 under supervisord. As the image's own `docker` user (uid 10000, gid 50 +# "staff") the entrypoint below does the same setup steps that don't need root, +# runs the scheduler loop from the image's supervisord.conf, and serves Apache on +# 8080 from copies of its config with runtime files in /tmp. +x-harbor: + slug: snipe-it + name: Snipe-IT + description: Track your organisation's hardware, software and licences. + version: "8.8.4-c1" + primary: { service: app, port: 8080 } + health_path: /health + default_resources: { cpu_millis: 500, memory_mb: 1024, storage_mb: 10240 } + min_resources: { cpu_millis: 250, memory_mb: 512, storage_mb: 1024 } + weights: { app: 3, db: 2 } + volumes: + data: { uid: 10000, gid: 50, mode: "0750" } + db_data: { uid: 999, gid: 999, mode: "0700" } + parameters: + # Laravel's AES-256 key: exactly 32 characters. + - { key: APP_KEY, label: Encryption key, type: string, secret: true, generate: hex32 } + - { key: DB_PASSWORD, label: Database password, type: string, secret: true, generate: random32 } + - { key: DB_ROOT_PASSWORD, label: Database root password, type: string, secret: true, generate: random32 } + +services: + app: + image: snipe/snipe-it:v8.8.4 + user: "10000:50" + depends_on: + db: { condition: service_healthy } + environment: + APP_ENV: production + APP_DEBUG: "false" + APP_URL: ${HARBOR_PUBLIC_URL} + APP_KEY: ${APP_KEY} + APP_TRUSTED_PROXIES: "*" + APP_LOCALE: en-US + DB_CONNECTION: mysql + DB_HOST: db + DB_PORT: "3306" + DB_DATABASE: snipeit + DB_USERNAME: snipeit + DB_PASSWORD: ${DB_PASSWORD} + # Outgoing mail is blocked on Cottage; keep mail in the log instead. + MAIL_MAILER: log + MAIL_FROM_ADDR: snipe-it@${HARBOR_HOSTNAME} + MAIL_FROM_NAME: Snipe-IT + entrypoint: [ "/bin/bash", "-c" ] + command: + - | + set -e + cd /var/www/html + for dir in data/private_uploads/{assets,accessories,audits,components,consumables,eula-pdfs,imports,models,users,licenses,signatures} \ + data/uploads/{accessories,assets,avatars,barcodes,categories,companies,components,consumables,departments,locations,maintenances,manufacturers,models,suppliers} \ + dumps keys; do + mkdir -p "/var/lib/snipeit/$$dir" + done + [ -f /var/lib/snipeit/data/uploads/default.png ] || cp public/img/default.png /var/lib/snipeit/data/uploads/default.png + cp -a vendor/laravel/passport/database/migrations/* database/migrations/ + php artisan migrate --force + php artisan config:clear + php artisan config:cache + php artisan view:clear + (while true; do php artisan schedule:run; sleep 60; done) & + # Apache on 8080 as this user: the stock site with only the port changed, + # no SSL site, and pid, lock and log files under /tmp. + . /etc/apache2/envvars + export APACHE_RUN_DIR=/tmp/apache2 APACHE_LOCK_DIR=/tmp/apache2 APACHE_LOG_DIR=/tmp/apache2 APACHE_PID_FILE=/tmp/apache2/apache2.pid + mkdir -p /tmp/apache2 + echo 'Listen 8080' > /tmp/apache2/ports.conf + sed -e 's///' \ + -e 's#ErrorLog .*#ErrorLog /dev/stderr#' -e 's#CustomLog .*#CustomLog /dev/stdout combined#' \ + /etc/apache2/sites-enabled/000-default.conf > /tmp/apache2/site.conf + sed -e 's#^Include ports.conf#Include /tmp/apache2/ports.conf#' \ + -e 's#^IncludeOptional sites-enabled/\*.conf#Include /tmp/apache2/site.conf#' \ + -e 's#^ErrorLog .*#ErrorLog /dev/stderr#' \ + /etc/apache2/apache2.conf > /tmp/apache2/apache2.conf + exec apache2 -d /etc/apache2 -f /tmp/apache2/apache2.conf -DFOREGROUND + volumes: [ "data:/var/lib/snipeit" ] + db: + image: mariadb:11.4.13 + user: "999:999" + environment: + MARIADB_DATABASE: snipeit + MARIADB_USER: snipeit + MARIADB_PASSWORD: ${DB_PASSWORD} + MARIADB_ROOT_PASSWORD: ${DB_ROOT_PASSWORD} + volumes: [ "db_data:/var/lib/mysql" ] + healthcheck: + test: [ "CMD", "healthcheck.sh", "--connect", "--innodb_initialized" ] + interval: 5s + retries: 20 + +volumes: + data: + db_data: diff --git a/apps/twenty/README.md b/apps/twenty/README.md new file mode 100644 index 0000000..6b50df9 --- /dev/null +++ b/apps/twenty/README.md @@ -0,0 +1,13 @@ +## First login + +Twenty takes a minute or two to set up its database the first time. While Cottage keeps the app private to you, open it and choose **Continue with email**: the first account you create becomes the admin, and you name your workspace. Then come back to the app's page in the dashboard and choose **Done** so your team can reach it. + +Nobody can join without an invitation. Under **Settings → Members**, copy the invite link and share it with your teammates yourself: outgoing mail is blocked on Cottage, so Twenty can't email invitations or password resets. + +## Bring in your contacts + +Open **People** or **Companies** and choose **Import** to load a CSV file, matching its columns to Twenty's fields. Add your own fields, or whole new objects, under **Settings → Data model**. Connecting a Google or Microsoft mailbox and calendar needs your own OAuth app, so it isn't set up here. + +## Export your data + +In any table, open the **⋯** menu and choose **Export** for a CSV of the records in view. Cottage also keeps nightly backups of the whole app, including its database and uploaded files. diff --git a/apps/twenty/cottage.yml b/apps/twenty/cottage.yml new file mode 100644 index 0000000..a96f8c4 --- /dev/null +++ b/apps/twenty/cottage.yml @@ -0,0 +1,21 @@ +name: Twenty +tagline: A modern CRM for your contacts, companies and deals. +category: Business +description: >- + Keep track of people, companies and opportunities in fast, spreadsheet-like + tables and kanban boards. Add your own objects and fields, write notes and + tasks, automate routine steps with workflows, and connect other tools through + the API and webhooks. Community edition, without enterprise features. +upstream: https://github.com/twentyhq/twenty +website: https://twenty.com +license: AGPL-3.0-only +images: + - ref: twentycrm/twenty:v2.59.0 + digest: sha256:76933f24d3781a3a90809857217b0cfd70735b0fa79eee4acc76956573810439 + - ref: postgres:18.7-alpine + digest: sha256:0115267ab5a509022df9319c77be365cef335adb71556c75f60f5360ee247e71 + - ref: redis:8.10.3-alpine + digest: sha256:7958cfbb9d152f87dadfbc89f1b0b15938f0b81ff8982feb327476f4911935c3 +mobile_apps: false +# The first account to sign up creates the workspace and becomes its admin. +first_visit_claims_admin: true diff --git a/apps/twenty/icon.svg b/apps/twenty/icon.svg new file mode 100644 index 0000000..c3d5b5b --- /dev/null +++ b/apps/twenty/icon.svg @@ -0,0 +1 @@ + diff --git a/apps/twenty/template.yml b/apps/twenty/template.yml new file mode 100644 index 0000000..327e844 --- /dev/null +++ b/apps/twenty/template.yml @@ -0,0 +1,93 @@ +# Twenty: an open-source CRM. Server, background worker, PostgreSQL and Redis, +# following the project's own Docker Compose file. Community features only: no +# enterprise licence key is set. +x-harbor: + slug: twenty + name: Twenty + description: A modern, open-source CRM. + version: "2.59.0-c1" + primary: { service: server, port: 3000 } + health_path: /healthz + default_resources: { cpu_millis: 1000, memory_mb: 3072, storage_mb: 10240 } + min_resources: { cpu_millis: 500, memory_mb: 2048, storage_mb: 2048 } + weights: { server: 4, worker: 3, db: 2, redis: 1 } + volumes: + storage: { uid: 1000, gid: 1000, mode: "0750" } + db_data: { uid: 70, gid: 70, mode: "0700" } + redis_data: { uid: 999, gid: 1000, mode: "0700" } + parameters: + - { key: APP_SECRET, label: Session signing secret, type: string, secret: true, generate: random32 } + - { key: ENCRYPTION_KEY, label: Encryption key for stored secrets, type: string, secret: true, generate: random32 } + - { key: DB_PASSWORD, label: Database password, type: string, secret: true, generate: random32 } + +x-twenty-env: &twenty-env + PG_DATABASE_URL: postgres://twenty:${DB_PASSWORD}@db:5432/twenty + REDIS_URL: redis://redis:6379 + SERVER_URL: ${HARBOR_PUBLIC_URL} + STORAGE_TYPE: local + APP_SECRET: ${APP_SECRET} + ENCRYPTION_KEY: ${ENCRYPTION_KEY} + # One workspace per app; only a server admin can create more. + IS_MULTIWORKSPACE_ENABLED: "false" + IS_WORKSPACE_CREATION_LIMITED_TO_SERVER_ADMINS: "true" + # Outgoing mail is blocked on Cottage, so never wait for a verification email. + IS_EMAIL_VERIFICATION_REQUIRED: "false" + TELEMETRY_ENABLED: "false" + +services: + server: + image: twentycrm/twenty:v2.59.0 + user: "1000:1000" + stop_grace_period: 120s + depends_on: + db: { condition: service_healthy } + redis: { condition: service_healthy } + environment: + <<: *twenty-env + NODE_PORT: "3000" + volumes: [ "storage:/app/packages/twenty-server/.local-storage" ] + healthcheck: + test: [ "CMD", "curl", "--fail", "--silent", "http://localhost:3000/healthz" ] + interval: 5s + timeout: 5s + retries: 60 + worker: + image: twentycrm/twenty:v2.59.0 + user: "1000:1000" + command: [ "yarn", "worker:prod" ] + depends_on: + db: { condition: service_healthy } + server: { condition: service_healthy } + environment: + <<: *twenty-env + # The server runs migrations and registers the scheduled jobs. + DISABLE_DB_MIGRATIONS: "true" + DISABLE_CRON_JOBS_REGISTRATION: "true" + volumes: [ "storage:/app/packages/twenty-server/.local-storage" ] + db: + image: postgres:18.7-alpine + user: "70:70" + environment: + POSTGRES_USER: twenty + POSTGRES_DB: twenty + POSTGRES_PASSWORD: ${DB_PASSWORD} + volumes: [ "db_data:/var/lib/postgresql" ] + healthcheck: + test: [ "CMD", "pg_isready", "-U", "twenty", "-d", "twenty" ] + interval: 5s + retries: 20 + redis: + image: redis:8.10.3-alpine + user: "999:1000" + # Twenty keeps its job queue here, so Redis must never evict keys. + command: [ "redis-server", "--appendonly", "yes", "--maxmemory-policy", "noeviction" ] + volumes: [ "redis_data:/data" ] + healthcheck: + test: [ "CMD", "redis-cli", "ping" ] + interval: 5s + retries: 30 + +volumes: + storage: + db_data: + redis_data: