Using "host" network_mode for magneticod-python stack to be able to simply apply firewall rules.

This commit is contained in:
Alexey Eschenko 2019-09-08 19:16:30 +00:00
parent 6727b9d407
commit a110008bdc

View file

@ -4,6 +4,9 @@ services:
magneticod: magneticod:
image: skobkin/magneticod-python:latest image: skobkin/magneticod-python:latest
container_name: magneticod-python 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: ports:
- "${MAGNETICO_PORT}:${MAGNETICO_PORT}/udp" - "${MAGNETICO_PORT}:${MAGNETICO_PORT}/udp"
env_file: .env env_file: .env