From eee0ed45ee300ab20b733f249277c30182a8f1ed Mon Sep 17 00:00:00 2001 From: forehalo Date: Wed, 11 Dec 2024 06:24:53 +0000 Subject: [PATCH] chore: selfhost compose backward compatibility (#9098) --- .github/deployment/self-host/compose.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/deployment/self-host/compose.yaml b/.github/deployment/self-host/compose.yaml index 68f3c3f5e3..369256f6bf 100644 --- a/.github/deployment/self-host/compose.yaml +++ b/.github/deployment/self-host/compose.yaml @@ -19,6 +19,7 @@ services: env_file: - .env environment: + - NODE_ENV=production - DATABASE_URL=postgresql://${DB_USERNAME}:${DB_PASSWORD}@postgres:5432/${DB_DATABASE:-affine} restart: unless-stopped @@ -43,6 +44,9 @@ services: container_name: redis healthcheck: test: ['CMD', 'redis-cli', '--raw', 'incr', 'ping'] + interval: 10s + timeout: 5s + retries: 5 restart: unless-stopped postgres: @@ -61,7 +65,7 @@ services: healthcheck: test: ['CMD', 'pg_isready', '-U', "${DB_USERNAME}", '-d', "${DB_DATABASE:-affine}"] - interval: 1m - start_interval: 10s - start_period: 1m + interval: 10s + timeout: 5s + retries: 5 restart: unless-stopped