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
1 changed files with 3 additions and 0 deletions

View File

@ -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