From 6d5ed7b5b74cdceca0c3cd6a79c2fecf9cbea6e2 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Tue, 2 Jan 2024 11:28:02 +0100 Subject: [PATCH] Removed deprecated depends_on attribut --- roles/docker-gitea/templates/docker-compose.yml.j2 | 4 +--- roles/docker-joomla/templates/docker-compose.yml.j2 | 2 +- roles/docker-mediawiki/tasks/main.yml | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/roles/docker-gitea/templates/docker-compose.yml.j2 b/roles/docker-gitea/templates/docker-compose.yml.j2 index cb43f04f..68b0e50f 100644 --- a/roles/docker-gitea/templates/docker-compose.yml.j2 +++ b/roles/docker-gitea/templates/docker-compose.yml.j2 @@ -30,8 +30,6 @@ services: {% if not ( enable_central_database | lower | bool ) %} depends_on: - database - links: - - database {% include 'templates/docker-mariadb-service.yml.j2' %} {% endif %} @@ -43,4 +41,4 @@ volumes: networks: default: - driver: bridge + driver: bridge \ No newline at end of file diff --git a/roles/docker-joomla/templates/docker-compose.yml.j2 b/roles/docker-joomla/templates/docker-compose.yml.j2 index ec3707a4..e1749900 100644 --- a/roles/docker-joomla/templates/docker-compose.yml.j2 +++ b/roles/docker-joomla/templates/docker-compose.yml.j2 @@ -12,7 +12,7 @@ services: JOOMLA_DB_NAME: "{{database_databasename}}" restart: always {% if not ( enable_central_database | lower | bool ) %} - links: + depends_on: - database {% endif %} volumes: diff --git a/roles/docker-mediawiki/tasks/main.yml b/roles/docker-mediawiki/tasks/main.yml index b0b2e0b9..33dbe7a4 100644 --- a/roles/docker-mediawiki/tasks/main.yml +++ b/roles/docker-mediawiki/tasks/main.yml @@ -9,7 +9,7 @@ log_driver: journald image: mediawiki restart: always - links: + depends_on: - database volumes: - "mediawiki-data:/var/www/html/"