docker: upgrade to Docker compose V2

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2024-11-01 09:10:00 +01:00
parent a90ef651d7
commit d28fa5cf5b
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
2 changed files with 4 additions and 5 deletions

View File

@ -56,6 +56,6 @@ mediawiki_db_backup_frequency: 'daily'
mediawiki_db_backup_timeout: 600
# general container management
compose_recreate: 'smart'
compose_recreate: 'auto'
compose_state: 'present'
compose_restart: false
compose_pull: 'always'

View File

@ -13,11 +13,10 @@
mode: 0644
- name: 'Create containers'
docker_compose:
community.docker.docker_compose_v2:
project_src: '{{ mediawiki_service_path }}'
pull: true
state: '{{ compose_state }}'
restarted: '{{ compose_restart }}'
pull: '{{ compose_pull }}'
recreate: |-
{{ (mediawiki_skin_repo.changed
or (mediawiki_config_file is defined and mediawiki_config_file.changed))