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-01 17:08:02 +02:00
parent 441b3f4956
commit 6956ce1c90
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
3 changed files with 6 additions and 9 deletions

View File

@ -52,7 +52,7 @@ grafana_plugins: []
grafana_unsigned_plugins: []
# - https://github.com/GoshPosh/grafana-meta-queries/archive/0.0.3.zip
# Generic container options
compose_recreate: 'smart'
# general container management
compose_state: 'present'
compose_recreate: 'smart'
compose_restart: false

View File

@ -8,10 +8,8 @@
mode: 0640
- name: Create containers
docker_compose:
community.docker.docker_compose_v2:
project_src: '{{ grafana_service_path }}'
pull: true
build: false
state: '{{ compose_state }}'
restarted: '{{ compose_restart }}'
recreate: '{{ grafana_config.changed | ternary("always", compose_recreate) }}'
pull: '{{ compose_pull }}'
state: '{{ compose_state }}'
recreate: '{{ grafana_config.changed | ternary("always", compose_recreate) }}'

View File

@ -1,5 +1,4 @@
---
version: '3.7'
services:
app:
container_name: '{{ grafana_cont_name }}'