NL-TCH / SPN-Community-Node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SPN Community Node via Docker

The configuration of the docker image has to be supplied via a config.json file. Example configuration:

{
    "core": {
      "metrics": {
        "instance": "justsomeinstance2",
        "comment": "docker instance build by NL-TCH",
        "push": ""
      }
    },
    "spn": {
      "publicHub": {
        "name": "justsomehub2",
        "transports": ["http:80", "http:8080", "tcp:17"],
        "ip4": "123.12.1.123"
      }
    }
  }

For all configuration flags check https://docs.safing.io/spn/hosting-a-community-node#appendix-i-available-settings-for-spn-nodes

To run the docker container execute the following command:docker run -v ./config.json:/data/config.json dockerteun/spn-community-node:latest

Global overview docker container:

graph LR;
    A(config.json provided with container creation) --> B
    B(container runs init.sh) -.->|SPN installed?| C(NO, run spn_installer.sh) -.->|Ater installing immediately start| D
    B(container runs init.sh) -.->|SPN installed?| D(YES, run spn_startup.sh with config.json)
Loading

About


Languages

Language:Shell 97.5%Language:Dockerfile 2.5%