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