diff --git a/apps/docmost/README.md b/apps/docmost/README.md new file mode 100644 index 0000000..7679660 --- /dev/null +++ b/apps/docmost/README.md @@ -0,0 +1,13 @@ +## First login + +The first visit asks you to name your workspace and create its owner account, so until you've done that only you can open the app. Open it from your Cottage dashboard, fill in the setup form, then choose **Done** on the app's page so anyone you share the address with can reach it. + +## Invite your team + +Open **Settings → Members** and choose **Invite members**. Outbound mail ports are blocked on Cottage, so the invitation email won't arrive: after inviting someone, copy their invite link from the **Invites** tab and send it to them yourself. + +Then create a space for each team or project under **Settings → Spaces**, and start writing. Type `/` in a page to add tables, diagrams, callouts and more. + +## Export your data + +Open a page's menu and choose **Export** for Markdown or HTML, or export a whole space from its settings. Cottage also keeps nightly backups of the whole app, database included. diff --git a/apps/docmost/cottage.yml b/apps/docmost/cottage.yml new file mode 100644 index 0000000..1b53e13 --- /dev/null +++ b/apps/docmost/cottage.yml @@ -0,0 +1,20 @@ +name: Docmost +tagline: A shared home for your team's docs, with real-time editing. +category: Wiki +description: >- + Write together in real time in a clean block editor, with spaces for each + team, page history, comments, diagrams and permissions. A familiar + alternative to Confluence and Notion. Cottage runs the open-source edition. +upstream: https://github.com/docmost/docmost/tree/v0.98.0 +website: https://docmost.com +license: AGPL-3.0-only +images: + - ref: docmost/docmost:0.98.0 + digest: sha256:c3bdc84767de0fc9431763523636ddfd783c35c25ef7d4a3c95c064628e78d7a + - ref: postgres:18.7-alpine + digest: sha256:0115267ab5a509022df9319c77be365cef335adb71556c75f60f5360ee247e71 + - ref: redis:8.10.3-alpine + digest: sha256:7958cfbb9d152f87dadfbc89f1b0b15938f0b81ff8982feb327476f4911935c3 +mobile_apps: false +# The first visit creates the workspace and its owner. +first_visit_claims_admin: true diff --git a/apps/docmost/icon.svg b/apps/docmost/icon.svg new file mode 100644 index 0000000..10e0a32 --- /dev/null +++ b/apps/docmost/icon.svg @@ -0,0 +1 @@ + diff --git a/apps/docmost/template.yml b/apps/docmost/template.yml new file mode 100644 index 0000000..2c23ac1 --- /dev/null +++ b/apps/docmost/template.yml @@ -0,0 +1,60 @@ +# Docmost: collaborative wiki and documentation, with PostgreSQL and Redis. +x-harbor: + slug: docmost + name: Docmost + description: Collaborative wiki and documentation software. + version: "0.98.0-c1" + primary: { service: app, port: 3000 } + health_path: /api/health + default_resources: { cpu_millis: 1000, memory_mb: 1024, storage_mb: 10240 } + min_resources: { cpu_millis: 500, memory_mb: 640, storage_mb: 1024 } + weights: { app: 4, db: 2, redis: 1 } + volumes: + data: { uid: 1000, gid: 1000, mode: "0750" } + db_data: { uid: 70, gid: 70, mode: "0700" } + redis_data: { uid: 999, gid: 1000, mode: "0750" } + parameters: + - { key: APP_SECRET, label: App secret, type: string, secret: true, generate: hex32 } + - { key: DB_PASSWORD, label: Database password, type: string, secret: true, generate: random32 } + +services: + app: + image: docmost/docmost:0.98.0 + user: "1000:1000" + depends_on: + db: { condition: service_healthy } + redis: { condition: service_healthy } + environment: + APP_URL: ${HARBOR_PUBLIC_URL} + APP_SECRET: ${APP_SECRET} + DATABASE_URL: postgresql://docmost:${DB_PASSWORD}@db:5432/docmost + REDIS_URL: redis://redis:6379 + STORAGE_DRIVER: local + DISABLE_TELEMETRY: "true" + volumes: [ "data:/app/data/storage" ] + db: + image: postgres:18.7-alpine + user: "70:70" + environment: + POSTGRES_DB: docmost + POSTGRES_USER: docmost + POSTGRES_PASSWORD: ${DB_PASSWORD} + volumes: [ "db_data:/var/lib/postgresql" ] + healthcheck: + test: [ "CMD", "pg_isready", "-U", "docmost", "-d", "docmost" ] + interval: 5s + retries: 30 + 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: + data: + db_data: + redis_data: diff --git a/apps/dokuwiki/README.md b/apps/dokuwiki/README.md new file mode 100644 index 0000000..897f547 --- /dev/null +++ b/apps/dokuwiki/README.md @@ -0,0 +1,13 @@ +## First login + +DokuWiki's installer runs on the first visit, so until you've finished it only you can open the app. Open your app from your Cottage dashboard and go to `/install.php` on its address. Name your wiki, turn on **Enable ACL**, fill in your superuser name, password and email, and pick an initial policy (**Closed wiki** if only invited people should read it). Save, then choose **Done** on the app's page so anyone you share the address with can reach it. + +## Your first pages + +Search for a page name that doesn't exist yet, or follow a red link, and choose **Create this page**. Pages are written in DokuWiki's own simple markup, with a toolbar to help. + +Under **Admin → Extension Manager** you can add plugins and templates, and under **Admin → User Manager** you can create accounts for your team. Outbound mail ports are blocked on Cottage, so set passwords for new users yourself rather than having them emailed. + +## Export your data + +Every page is a plain text file, so your wiki is easy to take with you. Add `?do=export_raw` to any page's address for its source, or install a backup plugin from the Extension Manager to download a whole archive. Cottage also keeps nightly backups of the whole app. diff --git a/apps/dokuwiki/cottage.yml b/apps/dokuwiki/cottage.yml new file mode 100644 index 0000000..bdbf048 --- /dev/null +++ b/apps/dokuwiki/cottage.yml @@ -0,0 +1,16 @@ +name: DokuWiki +tagline: A dependable wiki that keeps every page as a plain text file. +category: Wiki +description: >- + A long-standing, easy wiki for documentation, notes and team knowledge. No + database: pages are plain text files with full history. Access control lists, + and over a thousand plugins and templates to add from the admin page. +upstream: https://github.com/dokuwiki/dokuwiki +website: https://www.dokuwiki.org +license: GPL-2.0-only +images: + - ref: ghcr.io/dokuwiki/dokuwiki:2026-07-14c + digest: sha256:cb50ca51e24d0056490762e928fe42f21d86c7d5334192af1b16cf66a4b9a064 +mobile_apps: false +# DokuWiki's installer creates the superuser on first visit. +first_visit_claims_admin: true diff --git a/apps/dokuwiki/icon.svg b/apps/dokuwiki/icon.svg new file mode 100644 index 0000000..5687800 --- /dev/null +++ b/apps/dokuwiki/icon.svg @@ -0,0 +1 @@ + diff --git a/apps/dokuwiki/template.yml b/apps/dokuwiki/template.yml new file mode 100644 index 0000000..7ff0f70 --- /dev/null +++ b/apps/dokuwiki/template.yml @@ -0,0 +1,22 @@ +# DokuWiki: a wiki that keeps its pages in plain text files, no database. +x-harbor: + slug: dokuwiki + name: DokuWiki + description: Simple wiki that stores pages as plain text files. + version: "2026-07-14c-c1" + primary: { service: app, port: 8080 } + health_path: /health.php + default_resources: { cpu_millis: 250, memory_mb: 256, storage_mb: 5120 } + min_resources: { cpu_millis: 250, memory_mb: 128, storage_mb: 1024 } + volumes: + storage: { uid: 1000, gid: 1000, mode: "0750" } + +services: + app: + image: ghcr.io/dokuwiki/dokuwiki:2026-07-14c + # The image supports any uid; it then skips its chown step. + user: "1000:1000" + volumes: [ "storage:/storage" ] + +volumes: + storage: diff --git a/apps/mediawiki/README.md b/apps/mediawiki/README.md new file mode 100644 index 0000000..9913409 --- /dev/null +++ b/apps/mediawiki/README.md @@ -0,0 +1,15 @@ +## First login + +Choose **Log in** at the top of the wiki and sign in as `Admin` with the **Admin password** from the app's Overview tab. The admin password is only used when the wiki is first set up, so change it later from **Preferences → Change password**, not in Cottage. + +Anyone can read your wiki, but only signed-in people can edit. To make accounts for your team, open **Special:CreateAccount** while signed in as Admin. Or turn on **Allow anyone to create an account** in the app's settings. + +Outbound mail ports are blocked on Cottage, so the wiki doesn't send email: there are no email confirmations or password reset emails. If someone forgets their password and can't be reached another way, make them a new account. + +## Your first pages + +Edit **Main Page** to say what your wiki is for, then type a new title in the search box and choose to create it. Change the wiki's name with the **Wiki name** setting in Cottage. Upload files and images from **Special:Upload**. + +## Export your data + +Open **Special:Export** to download pages and their history as XML, which any other MediaWiki can import. Cottage also keeps nightly backups of the whole app, uploads included. diff --git a/apps/mediawiki/cottage.yml b/apps/mediawiki/cottage.yml new file mode 100644 index 0000000..429f0f6 --- /dev/null +++ b/apps/mediawiki/cottage.yml @@ -0,0 +1,15 @@ +name: MediaWiki +tagline: The wiki software behind Wikipedia, for your own knowledge base. +category: Wiki +description: >- + A powerful, battle-tested wiki for documentation, research and community + knowledge. Full page history, talk pages, templates, categories, file + uploads, and a huge library of extensions. Familiar to anyone who has edited + Wikipedia. +upstream: https://github.com/wikimedia/mediawiki +website: https://www.mediawiki.org +license: GPL-2.0-or-later +images: + - ref: mediawiki:1.46.2 + digest: sha256:0a8ee92de731b38ea6b03699e5d1458342b0a17c8a2adcd2c2306a9273126765 +mobile_apps: false diff --git a/apps/mediawiki/icon.svg b/apps/mediawiki/icon.svg new file mode 100644 index 0000000..0fd45d0 --- /dev/null +++ b/apps/mediawiki/icon.svg @@ -0,0 +1 @@ + diff --git a/apps/mediawiki/template.yml b/apps/mediawiki/template.yml new file mode 100644 index 0000000..a014c6b --- /dev/null +++ b/apps/mediawiki/template.yml @@ -0,0 +1,74 @@ +# MediaWiki: the wiki behind Wikipedia, here with SQLite in one container. +# The official image expects an installer run and a hand-placed LocalSettings.php, +# so the entrypoint below installs from the command line on first start (with the +# bundled extensions such as VisualEditor), keeps +# LocalSettings.php in the data volume (MW_CONFIG_FILE), runs the schema updater +# on every start, and serves Apache on port 8080 as www-data. +x-harbor: + slug: mediawiki + name: MediaWiki + description: The free wiki software that runs Wikipedia. + version: "1.46.2-c1" + primary: { service: app, port: 8080 } + health_path: /api.php + default_resources: { cpu_millis: 500, memory_mb: 512, storage_mb: 10240 } + min_resources: { cpu_millis: 250, memory_mb: 256, storage_mb: 1024 } + volumes: + data: { uid: 33, gid: 33, mode: "0750" } + images: { uid: 33, gid: 33, mode: "0750" } + parameters: + - { key: MW_ADMIN_PASSWORD, label: Admin password, type: string, secret: true, generate: random16 } + - { key: MW_SITENAME, label: Wiki name, type: string, default: "My Wiki", editable: true } + - { key: MW_OPEN_SIGNUPS, label: Allow anyone to create an account, type: bool, default: "false", editable: true } + +services: + app: + image: mediawiki:1.46.2 + user: "33:33" + environment: + MW_CONFIG_FILE: /var/www/data/LocalSettings.php + MW_SERVER: ${HARBOR_PUBLIC_URL} + MW_SITENAME: ${MW_SITENAME} + MW_OPEN_SIGNUPS: ${MW_OPEN_SIGNUPS} + MW_ADMIN_PASSWORD: ${MW_ADMIN_PASSWORD} + entrypoint: [ "/bin/bash", "-c" ] + command: + - | + set -eu + cd /var/www/html + if [ ! -f "$$MW_CONFIG_FILE" ]; then + php maintenance/run.php install --dbtype=sqlite --dbpath=/var/www/data \ + --dbname=wiki --server="$$MW_SERVER" --scriptpath="" --lang=en --with-extensions \ + --pass="$$MW_ADMIN_PASSWORD" --confpath=/var/www/data "$$MW_SITENAME" Admin + cat >> "$$MW_CONFIG_FILE" <<'SETTINGS' + + # Cottage: these follow the app's parameters. + $$wgServer = getenv( 'MW_SERVER' ); + $$wgSitename = getenv( 'MW_SITENAME' ); + $$wgEnableUploads = true; + # Outgoing mail is blocked on Cottage. + $$wgEnableEmail = false; + $$wgEnableUserEmail = false; + # Visitors can read; only signed-in users edit, and only an admin makes accounts + # unless open sign-ups are on. + $$wgGroupPermissions['*']['edit'] = false; + $$wgGroupPermissions['*']['createaccount'] = getenv( 'MW_OPEN_SIGNUPS' ) === 'true'; + SETTINGS + fi + php maintenance/run.php update --quick + # Apache on 8080: copies of the stock config with only the port changed. + 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 + # Never run scripts from the uploads directory. + printf '\n php_admin_flag engine off\n\n' >> /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: + - "data:/var/www/data" + - "images:/var/www/html/images" + +volumes: + data: + images: diff --git a/apps/notediscovery/README.md b/apps/notediscovery/README.md new file mode 100644 index 0000000..9a4f3e2 --- /dev/null +++ b/apps/notediscovery/README.md @@ -0,0 +1,13 @@ +## First login + +NoteDiscovery has a single password and no user names. Sign in with the **Password** from the app's Overview tab. + +## Your first notes + +Choose **New** to add a note or a folder. Notes are written in Markdown with a live preview; link one note to another with `[[Note name]]`, and open the graph view to see how they connect. Add tags in a note's frontmatter, for example `tags: [recipes, weekend]`. + +To show a single note to someone without giving them the password, open its menu and choose **Share**. They'll get a read-only page. + +## Export your data + +Open **Settings → Your notes** to download every note, with attachments, as a zip of plain `.md` files that any Markdown app can open. Cottage also keeps nightly backups of the whole app. diff --git a/apps/notediscovery/cottage.yml b/apps/notediscovery/cottage.yml new file mode 100644 index 0000000..00866b3 --- /dev/null +++ b/apps/notediscovery/cottage.yml @@ -0,0 +1,15 @@ +name: NoteDiscovery +tagline: Your Markdown notes, linked and searchable, in plain files you own. +category: Notes +description: >- + A quick, private notes app for one person. Write in Markdown with live + preview, link notes together and browse them as a graph, add tags, templates, + diagrams and maths, and share single notes by link. Every note is a plain .md + file. +upstream: https://github.com/gamosoft/NoteDiscovery +website: https://github.com/gamosoft/NoteDiscovery +license: MIT +images: + - ref: ghcr.io/gamosoft/notediscovery:0.35.0 + digest: sha256:23961ea1d33d55ecf05d38bde1a9de63c82c7e86438199d66939f725b7693b41 +mobile_apps: false diff --git a/apps/notediscovery/icon.svg b/apps/notediscovery/icon.svg new file mode 100644 index 0000000..014eee6 --- /dev/null +++ b/apps/notediscovery/icon.svg @@ -0,0 +1 @@ + diff --git a/apps/notediscovery/template.yml b/apps/notediscovery/template.yml new file mode 100644 index 0000000..174c52d --- /dev/null +++ b/apps/notediscovery/template.yml @@ -0,0 +1,32 @@ +# NoteDiscovery: a light, single-user Markdown notes app. Notes are plain files. +x-harbor: + slug: notediscovery + name: NoteDiscovery + description: Lightweight Markdown knowledge base, stored as plain files. + version: "0.35.0-c1" + primary: { service: app, port: 8000 } + health_path: /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" } + parameters: + - { key: AUTHENTICATION_PASSWORD, label: Password, type: string, secret: true, generate: random16 } + - { key: AUTHENTICATION_SECRET_KEY, label: Session secret key, type: string, secret: true, generate: hex32 } + +services: + app: + image: ghcr.io/gamosoft/notediscovery:0.35.0 + user: "1000:1000" + environment: + AUTHENTICATION_ENABLED: "true" + AUTHENTICATION_PASSWORD: ${AUTHENTICATION_PASSWORD} + AUTHENTICATION_SECRET_KEY: ${AUTHENTICATION_SECRET_KEY} + SHARE_PUBLIC_ORIGIN: ${HARBOR_PUBLIC_URL} + # Trust Cottage's proxy for the real scheme and client address. + FORWARDED_ALLOW_IPS: "*" + HOME: /tmp + volumes: [ "data:/app/data" ] + +volumes: + data: diff --git a/apps/poznote/README.md b/apps/poznote/README.md new file mode 100644 index 0000000..a0313e1 --- /dev/null +++ b/apps/poznote/README.md @@ -0,0 +1,18 @@ +## First login + +A new Poznote starts with a shared default login, so until you've changed it only you can open the app. Open it from your Cottage dashboard and sign in with the user name `admin_change_me` and the password `admin`. Then, straight away: + +1. Open **Settings → Change Password** and choose a strong password. +2. Open **Settings → Admin Tools → User Management** and rename the account to your own name. + +Once both are done, choose **Done** on the app's page so anyone you share the address with can reach it. + +## Your first notes + +Choose **New note** and pick rich text or Markdown. Group notes in folders and tags, and use separate workspaces for things like work and home. To write with family or a team, create an account for each person under **Admin Tools → User Management**, then share a workspace with them from **Settings → Workspaces**. + +Outbound mail ports are blocked on Cottage, so reminder and shared workspace emails can't be sent. Leave the SMTP settings empty. + +## Export your data + +Open **Settings → Backup / Export** to download a zip of your notes, attachments and database, with an `index.html` you can browse offline. Cottage also keeps nightly backups of the whole app. diff --git a/apps/poznote/cottage.yml b/apps/poznote/cottage.yml new file mode 100644 index 0000000..a7ff6e2 --- /dev/null +++ b/apps/poznote/cottage.yml @@ -0,0 +1,18 @@ +name: Poznote +tagline: Notes, tasks and docs in one place, without the clutter. +category: Notes +description: >- + A light alternative to Notion, Evernote and OneNote. Write in rich text or + Markdown, sort notes into workspaces, folders and tags, keep tasks and a + diary, draw with Excalidraw, and share notes or whole workspaces with the + people on your instance. +upstream: https://github.com/timothepoznanski/poznote +website: https://poznote.com +license: MIT +images: + - ref: ghcr.io/timothepoznanski/poznote:6.156.1-rootless + digest: sha256:db532f99c5365e3e929462000c879a01a01103aed20fa1a235e03c30b77658d6 +mobile_apps: false +# A fresh install has a fixed default admin login (admin_change_me / admin) +# that has to be changed on first visit. +first_visit_claims_admin: true diff --git a/apps/poznote/icon.svg b/apps/poznote/icon.svg new file mode 100644 index 0000000..b7a4612 --- /dev/null +++ b/apps/poznote/icon.svg @@ -0,0 +1 @@ + diff --git a/apps/poznote/template.yml b/apps/poznote/template.yml new file mode 100644 index 0000000..a81dd2d --- /dev/null +++ b/apps/poznote/template.yml @@ -0,0 +1,25 @@ +# Poznote: note-taking and documentation in PHP with SQLite. Upstream's rootless +# image runs nginx, php-fpm and supervisord as uid 1000 on port 8080. +x-harbor: + slug: poznote + name: Poznote + description: Self-hosted note-taking and documentation platform. + version: "6.156.1-c1" + primary: { service: app, port: 8080 } + health_path: /api/health + 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: ghcr.io/timothepoznanski/poznote:6.156.1-rootless + user: "1000:1000" + environment: + SQLITE_DATABASE: /var/www/html/data/database/poznote.db + POZNOTE_APP_URL: ${HARBOR_PUBLIC_URL} + volumes: [ "data:/var/www/html/data" ] + +volumes: + data: diff --git a/apps/wiki-js/README.md b/apps/wiki-js/README.md new file mode 100644 index 0000000..e7bbdce --- /dev/null +++ b/apps/wiki-js/README.md @@ -0,0 +1,15 @@ +## First login + +Sign in with the email `admin@` followed by your app's address (for example `admin@mywiki.cottage.host`) and the **Admin password** from the app's Overview tab. + +Once you're in, open your profile to change that email to your own, and set a new password if you like. The admin password parameter is only used the first time the wiki starts, so changing it later in Cottage won't change your sign-in. + +## Your first pages + +Choose **New Page**, pick a folder and an editor (the visual editor or Markdown), and start writing. Under **Administration → Site** set your wiki's title, and under **Groups** decide who can read and who can edit. + +Outbound mail ports are blocked on Cottage, so the wiki can't send invitations or password resets by email. Create accounts for your team under **Administration → Users** and hand them their passwords yourself. + +## Export your data + +Under **Administration → Utilities** you can export your pages and assets. Cottage also keeps nightly backups of the whole app, database included. diff --git a/apps/wiki-js/cottage.yml b/apps/wiki-js/cottage.yml new file mode 100644 index 0000000..07859ad --- /dev/null +++ b/apps/wiki-js/cottage.yml @@ -0,0 +1,16 @@ +name: Wiki.js +tagline: A fast, good-looking wiki your whole team will actually use. +category: Wiki +description: >- + Write pages in a visual editor or in Markdown, organise them in folders, and + find anything with built-in search. Fine-grained groups and permissions, page + history, comments, and import from DokuWiki, Confluence and others. +upstream: https://github.com/requarks/wiki/tree/3.5.0 +website: https://js.wiki +license: AGPL-3.0-only +images: + - ref: ghcr.io/requarks/wiki:3.5.0 + digest: sha256:3de0495234db06fc3ad78b8a6dc71ff297b55ed0d3b37d61eb0fbfe767f6e5b6 + - ref: postgres:18.7-alpine + digest: sha256:0115267ab5a509022df9319c77be365cef335adb71556c75f60f5360ee247e71 +mobile_apps: false diff --git a/apps/wiki-js/icon.svg b/apps/wiki-js/icon.svg new file mode 100644 index 0000000..bd6ebfa --- /dev/null +++ b/apps/wiki-js/icon.svg @@ -0,0 +1 @@ + diff --git a/apps/wiki-js/template.yml b/apps/wiki-js/template.yml new file mode 100644 index 0000000..973e171 --- /dev/null +++ b/apps/wiki-js/template.yml @@ -0,0 +1,49 @@ +# Wiki.js: a modern wiki on Node.js, with its own PostgreSQL. +x-harbor: + slug: wiki-js + name: Wiki.js + description: A modern, fast wiki with a visual and a Markdown editor. + version: "3.5.0-c1" + primary: { service: app, port: 3000 } + health_path: /_live + default_resources: { cpu_millis: 1000, memory_mb: 1024, storage_mb: 5120 } + min_resources: { cpu_millis: 500, memory_mb: 640, storage_mb: 1024 } + weights: { app: 3, db: 1 } + volumes: + data: { uid: 1000, gid: 1000, mode: "0750" } + db_data: { uid: 70, gid: 70, mode: "0700" } + parameters: + - { key: ADMIN_PASS, label: Admin password, type: string, secret: true, generate: random16 } + - { key: DB_PASSWORD, label: Database password, type: string, secret: true, generate: random32 } + +services: + app: + image: ghcr.io/requarks/wiki:3.5.0 + user: "1000:1000" + depends_on: + db: { condition: service_healthy } + environment: + DB_HOST: db + DB_NAME: wiki + DB_USER: wiki + DB_PASS: ${DB_PASSWORD} + # Only used the first time the wiki starts, to create the administrator. + ADMIN_EMAIL: admin@${HARBOR_HOSTNAME} + ADMIN_PASS: ${ADMIN_PASS} + volumes: [ "data:/wiki/data" ] + db: + image: postgres:18.7-alpine + user: "70:70" + environment: + POSTGRES_DB: wiki + POSTGRES_USER: wiki + POSTGRES_PASSWORD: ${DB_PASSWORD} + volumes: [ "db_data:/var/lib/postgresql" ] + healthcheck: + test: [ "CMD", "pg_isready", "-U", "wiki", "-d", "wiki" ] + interval: 5s + retries: 30 + +volumes: + data: + db_data: