Adding magneticod-go with extra engines stack.

This commit is contained in:
Alexey Skobkin 2019-10-19 23:58:14 +03:00
parent a110008bdc
commit 365517a37d
No known key found for this signature in database
GPG Key ID: 5D5CEF6F221278E7
3 changed files with 23 additions and 0 deletions

5
magneticod/.env.dist Normal file
View File

@ -0,0 +1,5 @@
MAGNETICO_PORT=64879
MAGNETICO_NEIGHBORS=200
MAGNETICO_DATABASE_URL=sqlite3:///data/database.sqlite3
HOST_USER=0

1
magneticod/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.env

View File

@ -0,0 +1,17 @@
version: '3.7'
services:
magneticod:
image: skobkin/magneticod:0.9.1-extra-engines
container_name: magneticod-go
# 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}"