docker: migrate to Docker Compose V2
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
fb63c16eb2
commit
19d63d6daa
|
@ -81,7 +81,7 @@ alertmanager_victorops_display_name: >-
|
|||
# For discovery of prometheus master nodes
|
||||
consul_catalog_url: 'http://localhost:8500/v1/catalog'
|
||||
|
||||
# Generic container options
|
||||
compose_recreate: 'smart'
|
||||
# general container management
|
||||
compose_recreate: 'auto'
|
||||
compose_state: 'present'
|
||||
compose_restart: false
|
||||
compose_pull: 'always'
|
||||
|
|
|
@ -28,11 +28,9 @@
|
|||
oauth_upstream_url: 'http://app:{{ alertmanager_webui_port }}/'
|
||||
|
||||
- name: Create containers
|
||||
docker_compose:
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: '{{ alertmanager_service_path }}'
|
||||
files: ['{{ alertmanager_compose_file }}', '{{ alertmanager_oauth_compose_file }}']
|
||||
pull: true
|
||||
build: false
|
||||
state: '{{ compose_state }}'
|
||||
restarted: '{{ compose_restart }}'
|
||||
recreate: '{{ alertmanager_config.changed | ternary("always", compose_recreate) }}'
|
||||
recreate: '{{ compose_recreate }}'
|
||||
pull: '{{ compose_pull }}'
|
||||
state: '{{ "restarted" if alertmanager_config.changed else compose_state }}'
|
||||
|
|
Loading…
Reference in New Issue