docker: upgrade to Docker Compose V2
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
441b3f4956
commit
6956ce1c90
|
@ -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
|
||||
|
|
|
@ -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
|
||||
pull: '{{ compose_pull }}'
|
||||
state: '{{ compose_state }}'
|
||||
restarted: '{{ compose_restart }}'
|
||||
recreate: '{{ grafana_config.changed | ternary("always", compose_recreate) }}'
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
---
|
||||
version: '3.7'
|
||||
services:
|
||||
app:
|
||||
container_name: '{{ grafana_cont_name }}'
|
||||
|
|
Loading…
Reference in New Issue