diff --git a/docker-compose.yml b/docker-compose.yml index 52098b48..eb1d2319 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -66,6 +66,10 @@ services: - './docker/archive/main.py:/app/main.py' ports: - '8083:8080' + # The Sanic app is PID 1 and reaps nothing; check_output kills each command's process group, + # and the killed grandchildren (chrome, cat, node) are orphaned to it as zombies (several per + # archive). init runs tini as PID 1 to reap them. + init: true healthcheck: test: [ 'CMD-SHELL', 'curl http://127.0.0.1:8080/' ] interval: 2m