18 lines
601 B
YAML
18 lines
601 B
YAML
version: '3.7'
|
|
|
|
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
|
|
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"
|