mirror of
https://github.com/status-im/infra-faucet.git
synced 2025-02-25 17:16:22 +00:00
31 lines
722 B
YAML
31 lines
722 B
YAML
---
|
|
- name: Create container folders
|
|
file:
|
|
path: '{{ miner_geth_vol }}/data'
|
|
state: directory
|
|
mode: 0750
|
|
owner: dockremap
|
|
group: docker
|
|
|
|
- name: Create faucet container
|
|
docker_container:
|
|
name: '{{ faucet_cont_name }}'
|
|
image: '{{ faucet_cont_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
|
|
--rpcaddr=0.0.0.0
|
|
--rpcport={{ faucet_geth_rpc_port }}
|
|
--v5disc
|
|
volumes:
|
|
- '{{ miner_geth_vol }}/data:/date'
|