Skip to content

Commit

Permalink
Merge pull request #6 from blopker/feature/stop-gracefully
Browse files Browse the repository at this point in the history
Stop container gracefully
  • Loading branch information
qoomon authored Sep 19, 2018
2 parents d0da898 + 7d0ebc2 commit 160e8ba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: '3'

services:
dockerhost:
build:
context: .
cap_add: [ 'NET_ADMIN', 'NET_RAW' ]
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ iptables -t nat -I PREROUTING -p tcp --match multiport --dports "$FORWARDING_POR
iptables -t nat -I POSTROUTING -j MASQUERADE

# run forever
tail -f /dev/null
trap "exit 0;" TERM INT; while true; do sleep 1d; done & wait

0 comments on commit 160e8ba

Please sign in to comment.