From a110008bdcbad8749b96f542074af14bf24a8cd6 Mon Sep 17 00:00:00 2001 From: Alexey Eschenko Date: Sun, 8 Sep 2019 19:16:30 +0000 Subject: [PATCH] Using "host" network_mode for magneticod-python stack to be able to simply apply firewall rules. --- magneticod-python/docker-compose.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/magneticod-python/docker-compose.yml b/magneticod-python/docker-compose.yml index f1d5316..a1fba72 100644 --- a/magneticod-python/docker-compose.yml +++ b/magneticod-python/docker-compose.yml @@ -4,6 +4,9 @@ services: magneticod: image: skobkin/magneticod-python:latest container_name: magneticod-python + # Using host mode to be able to simply apply firewall rules to disable connection tracking + # https://github.com/boramalper/magnetico/blob/master/cmd/magneticod/README.md#setup + network_mode: "host" ports: - "${MAGNETICO_PORT}:${MAGNETICO_PORT}/udp" env_file: .env