2019-10-19 20:58:14 +00:00
|
|
|
version: '3.7'
|
|
|
|
|
|
|
|
services:
|
|
|
|
magneticod:
|
2020-11-29 22:22:00 +00:00
|
|
|
image: boramalper/magneticod:latest
|
2020-11-29 22:25:26 +00:00
|
|
|
container_name: magneticod
|
2019-10-19 20:58:14 +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"
|
|
|
|
ports:
|
|
|
|
- "${MAGNETICO_PORT}:${MAGNETICO_PORT}/udp"
|
|
|
|
env_file: .env
|
|
|
|
#volumes:
|
|
|
|
# - "${HOST_DB_PATH}:/data"
|
|
|
|
user: "${HOST_USER}"
|
|
|
|
restart: unless-stopped
|
|
|
|
command: "-v --indexer-addr=0.0.0.0:${MAGNETICO_PORT} --indexer-max-neighbors=${MAGNETICO_NEIGHBORS} --database=${MAGNETICO_DATABASE_URL}"
|
2019-11-22 23:01:51 +00:00
|
|
|
logging:
|
|
|
|
driver: "json-file"
|
|
|
|
options:
|
2019-11-22 23:37:35 +00:00
|
|
|
max-size: "${LOG_MAX_SIZE:-5m}"
|
|
|
|
max-file: "${LOG_MAX_FILE:-5}"
|