Skip to content

Commit

Permalink
Use init when running in Docker to avoid zombie process
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bparmentier authored Aug 22, 2024
1 parent b006747 commit 995458d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 995458d

Please sign in to comment.