-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-geth-tor.yml
40 lines (38 loc) · 2.28 KB
/
docker-compose-geth-tor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# References:
# - https://github.com/slockit/in3/blob/master/docs/getting_started.md#registering-a-own-in3-node
version: '2'
services:
incubed-server:
image: slockit/in3-server:latest
volumes:
- $PWD/keys:/secure # directory where the private key is stored
expose: # swap `ports` for `expose` since publishing a
# Tor service and we do not want to map any ports
# to the host machine. The Incubed server will
# therefore base inaccessible outside of the
# Tor network
# Reference: https://randywestergren.com/running-a-hidden-tor-service-with-docker-compose/
- 8500/tcp # open the port 8500 to be accessed by public
- 9050/tcp # open the socket port 9050 (see file torrc)
command:
# Generated Account
# private key: b9bcef71ad544a209ae348af0306ad776e3a0842496e41d2410fcd5996856c11
- --privateKey=/secure/keystore.json # internal path to the key
- --privateKeyPassphrase=p # passphrase to unlock the key
- --chain=0x5 # chain (Görli)
- --rpcUrl=http://incubed-parity:8545 # url of the goerli-client
- --registry=0x85613723dB1Bc29f332A37EeF10b61F8a4225c7e # url of the incubed-registry
- --autoRegistry-url=http://in3.server:8500 # check or register this node for this url
- --autoRegistry-deposit=2 # deposit to use when registering
# https://hackmd.io/xozUfgl3To2OxlsPfS42Dw?view
incubed-geth:
image: ethereum/client-go
command:
- --goerli
- --rpc
- --rpcvhosts=* console
tor: # References: https://randywestergren.com/running-a-hidden-tor-service-with-docker-compose/
build: tor-hidden-service-geth/
links:
- incubed-server
- incubed-geth