23 lines
761 B
YAML
Raw Normal View History

---
- name: 'Create faucet container: {{ faucet_cont_name }}'
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 }}'
# enable automatic container updates
labels:
com.centurylinklabs.watchtower.enable: 'true'
links:
- '{{ 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 }}