enable swarm http interface at 8800
This commit is contained in:
parent
20874c92fd
commit
9b49168180
|
@ -23,5 +23,9 @@ geth_rpc_port: 8545
|
|||
geth_pass: ~
|
||||
geth_account: ~
|
||||
|
||||
# main http port
|
||||
swarm_addr: '0.0.0.0'
|
||||
swarm_port: 8800
|
||||
|
||||
# for key generation
|
||||
genkey_image: 'ethereum/client-go:alltools-latest'
|
||||
|
|
|
@ -11,11 +11,13 @@
|
|||
restart: '{{ cont_restart }}'
|
||||
ports:
|
||||
- '{{ cont_port }}:{{ cont_port }}'
|
||||
- '{{ swarm_port }}:8500'
|
||||
links:
|
||||
- '{{ geth_name }}:geth'
|
||||
command: |
|
||||
--debug
|
||||
--port={{ cont_port }}
|
||||
--httpaddr={{ swarm_addr }}
|
||||
--bzzaccount={{ geth_account }}
|
||||
--datadir=/data
|
||||
--keystore=/keys
|
||||
|
@ -37,3 +39,14 @@
|
|||
destination_port: '{{ cont_port }}'
|
||||
notify:
|
||||
- Save iptables rules
|
||||
|
||||
- name: Enable swarm HTTP port
|
||||
iptables:
|
||||
comment: '{{ cont_name }} HTTP'
|
||||
chain: INPUT
|
||||
jump: ACCEPT
|
||||
source: '0.0.0.0/0'
|
||||
protocol: tcp
|
||||
destination_port: '{{ swarm_port }}'
|
||||
notify:
|
||||
- Save iptables rules
|
||||
|
|
Loading…
Reference in New Issue