add cont_ generic variables for managing state
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
020d513461
commit
a7369a1739
|
@ -9,8 +9,10 @@ beacon_node_total_nodes: 1
|
|||
beacon_node_cont_tag: '{{ beacon_node_network }}-{{ beacon_node_build_flavour }}'
|
||||
beacon_node_cont_image: 'statusteam/nimbus_beacon_node:{{ beacon_node_cont_tag }}'
|
||||
|
||||
beacon_node_cont_vol: '/docker/beacon_node'
|
||||
|
||||
beacon_node_disovery_port: 9000
|
||||
beacon_node_listening_port: 9000
|
||||
|
||||
# general container management
|
||||
cont_state: started
|
||||
cont_recreate: false
|
||||
cont_restart: false
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
image: '{{ beacon_node_cont_image }}'
|
||||
pull: true
|
||||
restart_policy: always
|
||||
state: 'started'
|
||||
recreate: false
|
||||
restart: false
|
||||
state: '{{ cont_state }}'
|
||||
recreate: '{{ cont_recreate }}'
|
||||
restart: '{{ cont_restart }}'
|
||||
ports:
|
||||
- '{{ public_tcp_port }}:{{ beacon_node_listening_port }}'
|
||||
- '{{ public_udp_port }}:{{ beacon_node_disovery_port }}/udp'
|
||||
|
|
Loading…
Reference in New Issue