fix geth alias for faucet api

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-05-08 13:11:30 +02:00
parent 3919962e77
commit 439cea540c
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
3 changed files with 5 additions and 4 deletions

View File

@ -3,12 +3,13 @@
faucet_network: '{{ stage }}'
faucet_domain: 'faucet-{{ stage }}.status.im'
faucet_cors_rule: '^https?://.*\.infura\.status.im'
faucet_geth_cont_alias: 'faucet-geth'
# geth necessary for Faucet to work
geth_network_name: '{{ faucet_network }}'
geth_rpc_port: '{{ faucet_geth_cont_rpc_port }}'
geth_cont_name: '{{ faucet_geth_cont_name }}'
geth_extra_alias: 'miner'
geth_extra_alias: '{{ faucet_geth_cont_alias }}'
geth_sync_mode: full
geth_log_level_name: info

View File

@ -10,7 +10,7 @@ faucet_http_port: 3001
# info about geth container we connect to
faucet_geth_cont_name: 'faucet-geth'
faucet_geth_cont_alias: 'geth'
faucet_geth_cont_alias: '{{ faucet_geth_cont_name }}'
faucet_geth_cont_rpc_port: 8545
# generic container settings

View File

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