Jakub Sokołowski 68400cd347
add explicit bootnodes for rinkeby
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-03-21 13:03:37 +01:00

35 lines
1.1 KiB
YAML

---
- debug: msg={{faucet_network}}
- debug: msg={{faucet_geth_bootnodes}}
- name: 'Create geth container: {{ faucet_geth_name }}'
docker_container:
name: '{{ faucet_geth_name }}'
image: '{{ faucet_geth_image }}'
user: root
pull: true
restart_policy: always
state: '{{ cont_state }}'
recreate: '{{ cont_recreate }}'
restart: '{{ cont_restart }}'
command: |
--datadir=/data
--networkid={{ faucet_network_id | mandatory }}
--password=/data/keystore/wallet.pass
--unlock={{ faucet_account_addr }}
--syncmode=light
--rpc
--rpcapi={{ faucet_geth_rcp_api }}
--rpcvhosts={{ faucet_geth_alias }},localhost
--rpcaddr=0.0.0.0
--rpcport={{ faucet_geth_rpc_port }}
--v5disc
{% if faucet_geth_bootnodes | length %}
--bootnodes={{ faucet_geth_bootnodes | join(",") }}
{% endif %}
ports:
- '127.0.0.1:{{ faucet_geth_rpc_port }}:{{ faucet_geth_rpc_port }}'
- '{{ faucet_geth_main_port }}:{{ faucet_geth_main_port }}'
volumes:
- '{{ faucet_geth_vol }}/data:/data'