From 9cb981f06883b463ac4fb2a015ac05b2f44f9d9d Mon Sep 17 00:00:00 2001 From: Jon Kristian Nilsen Date: Mon, 29 Apr 2024 13:29:42 +0200 Subject: [PATCH] Added twenty crm template + logo. --- public/svgs/twenty.svg | 1 + templates/compose/twenty.yaml | 46 +++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 public/svgs/twenty.svg create mode 100644 templates/compose/twenty.yaml diff --git a/public/svgs/twenty.svg b/public/svgs/twenty.svg new file mode 100644 index 000000000..eef3a382a --- /dev/null +++ b/public/svgs/twenty.svg @@ -0,0 +1 @@ + diff --git a/templates/compose/twenty.yaml b/templates/compose/twenty.yaml new file mode 100644 index 000000000..7524ae9c5 --- /dev/null +++ b/templates/compose/twenty.yaml @@ -0,0 +1,46 @@ +# documentation: https://docs.twenty.com +# slogan: Twenty is a CRM designed to fit your unique business needs. +# tags: crm, self-hosted, dashboard +# logo: svgs/twenty.svg + +services: + twenty: + image: 'twentycrm/twenty:latest' + environment: + SERVER_URL: $SERVICE_FQDN_TWENTY_3000 + FRONT_BASE_URL: $SERVICE_FQDN_TWENTY_3000 + ENABLE_DB_MIGRATIONS: true + SIGN_IN_PREFILLED: true + STORAGE_TYPE: local + STORAGE_S3_REGION: $STORAGE_S3_REGION + STORAGE_S3_NAME: $STORAGE_S3_NAME + STORAGE_S3_ENDPOINT: $STORAGE_S3_ENDPOINT + ACCESS_TOKEN_SECRET: $SERVICE_BASE64_32_ACCESS + LOGIN_TOKEN_SECRET: $SERVICE_BASE64_32_LOGIN + REFRESH_TOKEN_SECRET: $SERVICE_BASE64_32_REFRESH + FILE_TOKEN_SECRET: $SERVICE_BASE64_32_FILE + POSTGRES_ADMIN_PASSWORD: $SERVICE_PASSWORD_POSTGRES + PG_DATABASE_URL: postgres://postgres:$SERVICE_PASSWORD_POSTGRES@postgres:5432/default + ports: + - "3000:3000" + depends_on: + postgres: + condition: service_healthy + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:3000/healthz"] + interval: 2s + timeout: 10s + retries: 15 + postgres: + image: "twentycrm/twenty-postgres:latest" + environment: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: $SERVICE_PASSWORD_POSTGRES + POSTGRES_DB: default + volumes: + - pg-data:/bitnami/postgresql + healthcheck: + test: ["CMD", "pg_isready", "-U", "postgres" "-d", "default"] + interval: 5s + timeout: 20s + retries: 10