docker: upgrade to Docker Compose V2

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2024-08-21 16:20:18 +02:00
parent b09b678089
commit 2525cc1e70
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
3 changed files with 7 additions and 8 deletions

View File

@ -26,6 +26,6 @@ matterbridge_gateways: []
matterbridge_bridges: {}
# general container management
compose_recreate: 'smart'
compose_recreate: 'auto'
compose_state: 'present'
compose_restart: false
compose_pull: 'always'

View File

@ -8,9 +8,8 @@
mode: 0644
- name: MatterBridge | Create container
docker_compose:
community.docker.docker_compose_v2:
project_src: '{{ matterbridge_service_path }}'
pull: true
state: '{{ compose_state }}'
restarted: '{{ config_file.changed or compose_restart }}'
recreate: '{{ compose_recreate }}'
recreate: '{{ compose_recreate }}'
pull: '{{ compose_pull }}'
state: '{{ "restarted" if config_file.changed else compose_state }}'

View File

@ -1,4 +1,4 @@
---
- import_tasks: config.yml
- import_tasks: container.yml
- import_tasks: docker.yml
- import_tasks: consul.yml