Use init when running in Docker to avoid zombie process

When the `start-docker` script is executed, some process is not properly
cleaned up and ends up in a zombie state.

Using the `init` flag when launching the container runs an init process
inside the container that will forward signals to node and reap
processes.

Fixes: #1428
This commit is contained in:
Bruno Parmentier 2024-08-22 14:26:01 +02:00 committed by GitHub
parent b006747a45
commit 995458d035
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,6 +12,7 @@ services:
depends_on:
db:
condition: service_healthy
init: true
restart: always
healthcheck:
test: ["CMD-SHELL", "curl http://localhost:3000/api/heartbeat"]