tell geth what vhost to expect from clients

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-03-19 20:08:59 +01:00
parent 19e8027f7c
commit a479245234
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
3 changed files with 6 additions and 3 deletions

View File

@ -21,6 +21,7 @@ faucet_geth_image: 'ethereum/client-go:{{ faucet_geth_tag }}'
faucet_geth_name: 'faucet-geth'
faucet_geth_vol: '/docker/{{ faucet_geth_name }}'
faucet_geth_rpc_port: 8545
faucet_geth_alias: 'geth'
# generic container settings
cont_state: started

View File

@ -13,9 +13,10 @@
labels:
com.centurylinklabs.watchtower.enable: 'true'
links:
- '{{ faucet_geth_name }}:geth'
- '{{ faucet_geth_name }}:{{ faucet_geth_alias }}'
ports:
- '127.0.0.1:{{ faucet_http_port | mandatory }}:{{ faucet_http_port }}'
command: |
-network={{ faucet_network | mandatory }}
-geth=http://{{ faucet_geth_alias }}:{{ faucet_geth_rpc_port }}/
-acc_pass={{ faucet_account_pass | mandatory }}

View File

@ -23,10 +23,11 @@
--syncmode=light
--rpc
--rpcapi=eth
--rpcvhosts={{ faucet_geth_alias }}
--rpcaddr=0.0.0.0
--rpcport={{ faucet_geth_rpc_port }}
--v5disc
exposed_ports:
- '{{ faucet_geth_rpc_port }}'
ports:
- '127.0.0.1:{{ faucet_geth_rpc_port }}:{{ faucet_geth_rpc_port }}'
volumes:
- '{{ faucet_geth_vol }}/data:/date'