status-im / status-go

The Status module that consumes go-ethereum
https://status.im
Mozilla Public License 2.0
727 stars 246 forks source link

Question: Is this Docker configuration correct? #2578

Open marek22k opened 2 years ago

marek22k commented 2 years ago

Hello,

While this is probably not the right place to ask, I keep getting directed to Discord. Due to Discord's proprietary nature, I try to avoid it. That's why I'm asking here.

I want to run a status node on my VPS with docker. Is the following Docker command suitable for this? docker run -p 8545:8545 -p 30303:30303 -v $(pwd)/config.json:/config.json -v $(pwd)/statusd:/root/.statusd statusteam/status-go:0.55.1 -register -log DEBUG -c /config.json -mailserver -network-id 1

config.json:

{
    "AdvertiseAddr": "<ip address of vps>",
    "ListenAddr": "0.0.0.0:30303",
    "HTTPEnabled": true,
    "HTTPHost": "127.0.0.1",
    "HTTPPort": 8545,
    "APIModules": "eth,net,web3,admin,mailserver",
    "RegisterTopics": ["whispermail"],
    "WakuConfig": {
        "Enabled": true,
        "EnableMailServer": true,
        "DataDir": "/var/tmp/statusd/waku",
        "MailServerPassword": "status-offline-inbox",
        "MailServerDataRetention": 30
    }
}

Is this configuration suitable? Furthermore, I wanted to ask how to run a node on IPv6 and IPv4. Is there only one field for the IP address in the config file?

marek22k commented 11 months ago

@cammellos Hi, why did you close the issue?

cammellos commented 11 months ago

Sorry @marek22k we are doing some much needed cleanup, apologies. To answer your question, it looks like configuration is ok, that's though the config for waku1, which are currently not using anymore and we'll be removing from the codebase at some point. We use Wakuv2 now, which has a slightly different configuration, I am not 100% about ipv6 support, but it should in theory work, @jakubgs might have the answer

marek22k commented 11 months ago

Thanks for the answer! That also answers my question about which protocol Status is currently using, which I asked at https://github.com/status-im/status-go/issues/3208. IPv6 support did not work in Status App the last time I tried it (see https://github.com/status-im/status-go/issues/3209).

cammellos commented 11 months ago

@marek22k for ipv6, I believe that's the old format that we use for waku1, waku2 format iit's using libp2p multiaddr, which supports ipv6 in its scheme, though whether we actually support it is a different question :)

jakubgs commented 11 months ago

I've never configured status-go nodes with ipv6 so I have no idea. But the config looks good.

A good starting point is always: https://github.com/status-im/status-go/blob/develop/_assets/scripts/gen_config.sh