From 0c2e5de9b07b8ef411546c8b9bd588ca43d647c2 Mon Sep 17 00:00:00 2001 From: "T. Narantuya" Date: Mon, 1 Sep 2025 15:29:27 +0900 Subject: [PATCH] Enhance Docker configuration in compose-plesk.yaml by adding service links for database and cache, and updating network settings to use an external bridge network. --- compose-plesk.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/compose-plesk.yaml b/compose-plesk.yaml index fe7263a4..aef4cef4 100644 --- a/compose-plesk.yaml +++ b/compose-plesk.yaml @@ -43,6 +43,10 @@ services: # Bind to loopback; Plesk nginx will proxy via Proxy Rules ports: - "127.0.0.1:4000:4000" + # Ensure name resolution on the default bridge if a custom network can't be created + links: + - database:database + - cache:cache # Secrets and server-side config only env_file: - /var/www/vhosts/asolutions.jp/private/env/portal-backend.env @@ -113,8 +117,5 @@ volumes: networks: portal-network: - driver: bridge - driver_opts: - com.docker.network.enable_ipv6: "false" - enable_ipv6: false - name: portal-plesk-network + external: true + name: bridge