Jakub Sokołowski a479245234
tell geth what vhost to expect from clients
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2019-03-19 20:08:59 +01:00

34 lines
875 B
YAML

---
- name: Create container folders
file:
path: '{{ faucet_geth_vol }}/data'
state: directory
mode: 0750
owner: dockremap
group: docker
- 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 }}
--syncmode=light
--rpc
--rpcapi=eth
--rpcvhosts={{ faucet_geth_alias }}
--rpcaddr=0.0.0.0
--rpcport={{ faucet_geth_rpc_port }}
--v5disc
ports:
- '127.0.0.1:{{ faucet_geth_rpc_port }}:{{ faucet_geth_rpc_port }}'
volumes:
- '{{ faucet_geth_vol }}/data:/date'