From 4549223d6d1ad46d4e920d85e4107ced29bf5a49 Mon Sep 17 00:00:00 2001 From: Jon Kristian Nilsen Date: Fri, 3 May 2024 12:56:49 +0200 Subject: [PATCH] Storage type should be exposed. Fixed healthcheck test. --- templates/compose/twenty.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/compose/twenty.yaml b/templates/compose/twenty.yaml index e2a3a193e..39fa8275d 100644 --- a/templates/compose/twenty.yaml +++ b/templates/compose/twenty.yaml @@ -12,10 +12,10 @@ services: ENABLE_DB_MIGRATIONS: true SIGN_IN_PREFILLED: false - STORAGE_TYPE: s3 - STORAGE_S3_REGION: $_APP_STORAGE_S3_REGION - STORAGE_S3_NAME: $_APP_STORAGE_S3_NAME - STORAGE_S3_ENDPOINT: $_APP_STORAGE_S3_ENDPOINT + STORAGE_TYPE: ${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 @@ -42,7 +42,7 @@ services: volumes: - pg-data:/bitnami/postgresql healthcheck: - test: ["CMD", "pg_isready", "-U", "postgres" "-d", "default"] + test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"] interval: 5s timeout: 20s retries: 10