2019-04-10 23:05:35 +00:00
|
|
|
version: '3.7'
|
|
|
|
|
|
|
|
services:
|
|
|
|
magneticod:
|
|
|
|
image: skobkin/magneticod-python:latest
|
|
|
|
container_name: magneticod-python
|
2019-09-08 19:16:30 +00:00
|
|
|
# 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"
|
2019-04-10 23:05:35 +00:00
|
|
|
ports:
|
|
|
|
- "${MAGNETICO_PORT}:${MAGNETICO_PORT}/udp"
|
|
|
|
env_file: .env
|
|
|
|
volumes:
|
|
|
|
- "${HOST_DB_PATH}:/data"
|
|
|
|
user: "${HOST_USER}"
|
|
|
|
restart: unless-stopped
|
|
|
|
command: "--node-addr 0.0.0.0:${MAGNETICO_PORT} --database-file /data/database.sqlite3"
|