From 47c59cef16f5a864a120a1cc0b695e10f4d07ad9 Mon Sep 17 00:00:00 2001 From: Jan Pazdziora Date: Tue, 21 Jan 2025 19:36:04 +0100 Subject: [PATCH] The links attribute is no longer needed for services to communicate. https://docs.docker.com/reference/compose-file/services/#links --- docker-compose.yml | 10 ---------- docker-compose.yml.www-with-app.patch | 22 ++++------------------ 2 files changed, 4 insertions(+), 28 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 1f285a5..640cdc5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -29,8 +29,6 @@ services: # - /sys/fs/cgroup:/sys/fs/cgroup:ro hostname: idp.example.test stop_signal: RTMIN+3 - links: - - ipa:ipa.example.test cap_add: - DAC_READ_SEARCH # tty: true @@ -53,10 +51,6 @@ services: # - /sys/fs/cgroup:/sys/fs/cgroup:ro hostname: www.example.test stop_signal: RTMIN+3 - links: - - ipa:ipa.example.test - - idp:idp.example.test - - app:app.example.test cap_add: - DAC_READ_SEARCH # Uncomment the following if you want to be able to access the @@ -73,10 +67,6 @@ services: # - /sys/fs/cgroup:/sys/fs/cgroup:ro hostname: client.example.test stop_signal: RTMIN+3 - links: - - ipa:ipa.example.test - - idp:idp.example.test - - www:www.example.test ports: - "55022:22" cap_add: diff --git a/docker-compose.yml.www-with-app.patch b/docker-compose.yml.www-with-app.patch index fa25323..5705b49 100644 --- a/docker-compose.yml.www-with-app.patch +++ b/docker-compose.yml.www-with-app.patch @@ -1,6 +1,6 @@ ---- docker-compose.yml 2025-01-07 13:24:30.383332565 +0100 -+++ docker-compose.yml.www-with-app 2025-01-07 13:45:34.152136298 +0100 -@@ -34,20 +34,10 @@ +--- docker-compose.yml 2025-02-08 21:41:16.170778265 +0100 ++++ docker-compose.yml.www-with-app 2025-02-08 21:41:37.944903088 +0100 +@@ -32,20 +32,10 @@ cap_add: - DAC_READ_SEARCH # tty: true @@ -23,21 +23,7 @@ volumes: - ./www-data:/data:Z # - /sys/fs/cgroup:/sys/fs/cgroup:ro -@@ -56,7 +46,6 @@ - links: - - ipa:ipa.example.test - - idp:idp.example.test -- - app:app.example.test - cap_add: - - DAC_READ_SEARCH - # Uncomment the following if you want to be able to access the -@@ -76,17 +65,8 @@ - links: - - ipa:ipa.example.test - - idp:idp.example.test -- - www:www.example.test -+ - wwwapp:www.example.test - ports: +@@ -71,12 +61,3 @@ - "55022:22" cap_add: - DAC_READ_SEARCH