Adding magneticod-go with extra engines stack.
This commit is contained in:
parent
a110008bdc
commit
365517a37d
5
magneticod/.env.dist
Normal file
5
magneticod/.env.dist
Normal 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
1
magneticod/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
.env
|
17
magneticod/docker-compose.yml
Normal file
17
magneticod/docker-compose.yml
Normal 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}"
|
Loading…
Reference in a new issue