Browse Source

docker-compose: run init as pid 1 to safely kill child processes

Fabian Peter Hammerle 3 years ago
parent
commit
362e807d70
2 changed files with 2 additions and 0 deletions
  1. 1 0
      CHANGELOG.md
  2. 1 0
      docker-compose.yml

+ 1 - 0
CHANGELOG.md

@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
   and to reduce ubiquitous "Aw, Snap!" errors ("Error code: 6")
 - docker-compose: increase size of `/dev/shm` to fix some "Aw, Snap!" errors and video playback
   ("ERROR:broker_posix.cc(46)] Received unexpected number of handles")
+- docker-compose: run "init" (e.g. `tini`) as pid `1` to safely kill child processes
 
 ## [0.1.0] - 2021-02-15
 ### Added

+ 1 - 0
docker-compose.yml

@@ -13,6 +13,7 @@ services:
     build: .
     image: docker.io/fphammerle/brave-browser
     container_name: brave_browser
+    init: true
     environment:
     - DISPLAY
     read_only: true