recreate container if compose changed

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2020-11-20 16:39:19 +01:00
parent 598bb9a933
commit 809326c802
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@
owner: dockremap
group: docker
mode: 0644
register: beacon_node_compose_file
# This takes a while because it builds the image
# NOTE: --compatibility flag required for mem/cpu limits
@ -15,7 +16,7 @@
--compatibility
up
--quiet-pull
{% if compose_recreate %}
{% if compose_recreate or beacon_node_compose_file.changed %}
--force-recreate
{% endif %}
--no-color