diff --git a/src/docker-manager.test.ts b/src/docker-manager.test.ts index 7e3722ab..7663f381 100644 --- a/src/docker-manager.test.ts +++ b/src/docker-manager.test.ts @@ -2365,7 +2365,11 @@ describe('docker-manager', () => { const result = generateDockerCompose(configWithProxy, mockNetworkConfigWithProxy); const proxy = result.services['api-proxy']; expect(proxy.healthcheck).toBeDefined(); - expect((proxy.healthcheck as any).test).toEqual(['CMD', 'curl', '-f', 'http://localhost:10000/health']); + const healthcheck = proxy.healthcheck!; + expect(healthcheck.test).toEqual(['CMD', 'curl', '-f', 'http://localhost:10000/health']); + expect(healthcheck.timeout).toBe('2s'); + expect(healthcheck.retries).toBe(10); + expect(healthcheck.start_period).toBe('10s'); }); it('should drop all capabilities', () => { diff --git a/src/docker-manager.ts b/src/docker-manager.ts index 18c405b8..e60deb22 100644 --- a/src/docker-manager.ts +++ b/src/docker-manager.ts @@ -1773,9 +1773,9 @@ export function generateDockerCompose( healthcheck: { test: ['CMD', 'curl', '-f', `http://localhost:${API_PROXY_HEALTH_PORT}/health`], interval: '1s', - timeout: '1s', - retries: 5, - start_period: '2s', + timeout: '2s', + retries: 10, + start_period: '10s', }, // Security hardening: Drop all capabilities cap_drop: ['ALL'],