From 2cf0f4facc18e2ebc15cce02fb3cf6144d9a89e6 Mon Sep 17 00:00:00 2001 From: Katja Lutz Date: Wed, 25 Sep 2024 21:10:05 +0200 Subject: [PATCH] chore: add Nitropage service template and logo --- public/svgs/nitropage.svg | 8 ++++ .../compose/nitropage-with-postgresql.yaml | 37 +++++++++++++++++++ templates/compose/nitropage.yaml | 21 +++++++++++ 3 files changed, 66 insertions(+) create mode 100644 public/svgs/nitropage.svg create mode 100644 templates/compose/nitropage-with-postgresql.yaml create mode 100644 templates/compose/nitropage.yaml diff --git a/public/svgs/nitropage.svg b/public/svgs/nitropage.svg new file mode 100644 index 000000000..67b2df17f --- /dev/null +++ b/public/svgs/nitropage.svg @@ -0,0 +1,8 @@ + + + NP + + + + + diff --git a/templates/compose/nitropage-with-postgresql.yaml b/templates/compose/nitropage-with-postgresql.yaml new file mode 100644 index 000000000..70aebb19b --- /dev/null +++ b/templates/compose/nitropage-with-postgresql.yaml @@ -0,0 +1,37 @@ +# documentation: https://nitropage.com +# slogan: Nitropage is an extensible visual website builder, offering a growing collection of versatile building blocks, focal-point image cropping and sovereign font management. +# tags: nitropage, builder, editor, wysiwyg, cms, content, management +# logo: svgs/nitropage.svg +# port: 3000 + +services: + nitropage: + image: codeberg.org/nitropage/nitropage + environment: + - SERVICE_FQDN_NITROPAGE_3000 + - NP_AUTH_SALT=${SERVICE_BASE64_SALT} + - NP_AUTH_PASSWORD=${SERVICE_PASSWORD_64_SESSION} + - DATABASE_URL=postgresql://${SERVICE_USER_POSTGRESQL}:${SERVICE_PASSWORD_POSTGRESQL}@postgresql:5432/${POSTGRESQL_DATABASE:-nitropage} + volumes: + - nitropage-data:/app/.data + depends_on: + postgresql: + condition: service_healthy + healthcheck: + test: ["CMD", "curl", "-f", "http://127.0.0.1:3000/admin"] + interval: 2s + timeout: 10s + retries: 15 + postgresql: + image: postgres:16-alpine + volumes: + - nitropage-postgresql-data:/var/lib/postgresql/data + environment: + - POSTGRES_USER=${SERVICE_USER_POSTGRESQL} + - POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRESQL} + - POSTGRES_DB=${POSTGRESQL_DATABASE:-nitropage} + healthcheck: + test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"] + interval: 5s + timeout: 20s + retries: 10 diff --git a/templates/compose/nitropage.yaml b/templates/compose/nitropage.yaml new file mode 100644 index 000000000..f267a38cd --- /dev/null +++ b/templates/compose/nitropage.yaml @@ -0,0 +1,21 @@ +# documentation: https://nitropage.com +# slogan: Nitropage is an extensible visual website builder, offering a growing collection of versatile building blocks, focal-point image cropping and sovereign font management. +# tags: nitropage, builder, editor, wysiwyg, cms, content, management +# logo: svgs/nitropage.svg +# port: 3000 + +services: + nitropage: + image: codeberg.org/nitropage/nitropage:sqlite + environment: + - SERVICE_FQDN_NITROPAGE_3000 + - NP_AUTH_SALT=${SERVICE_BASE64_SALT} + - NP_AUTH_PASSWORD=${SERVICE_PASSWORD_64_SESSION} + - DATABASE_URL=file:../../.data/dev.db + volumes: + - nitropage-data:/app/.data + healthcheck: + test: ["CMD", "curl", "-f", "http://127.0.0.1:3000/admin"] + interval: 2s + timeout: 10s + retries: 15