2019-03-19 12:08:13 +01:00
|
|
|
---
|
2019-03-19 17:27:49 +01:00
|
|
|
- name: 'Create faucet container: {{ faucet_cont_name }}'
|
2019-03-19 12:08:13 +01:00
|
|
|
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 }}'
|
2019-03-19 17:27:49 +01:00
|
|
|
# enable automatic container updates
|
|
|
|
labels:
|
|
|
|
com.centurylinklabs.watchtower.enable: 'true'
|
|
|
|
links:
|
2019-03-19 20:08:59 +01:00
|
|
|
- '{{ faucet_geth_name }}:{{ faucet_geth_alias }}'
|
2019-03-19 12:08:13 +01:00
|
|
|
ports:
|
|
|
|
- '127.0.0.1:{{ faucet_http_port | mandatory }}:{{ faucet_http_port }}'
|
|
|
|
command: |
|
|
|
|
-network={{ faucet_network | mandatory }}
|
2019-03-19 20:08:59 +01:00
|
|
|
-geth=http://{{ faucet_geth_alias }}:{{ faucet_geth_rpc_port }}/
|
2019-03-19 12:08:13 +01:00
|
|
|
-acc_pass={{ faucet_account_pass | mandatory }}
|