From 2dd049fcd4e3e7f00969f980a76de37571014c4f Mon Sep 17 00:00:00 2001 From: "T. Narantuya" Date: Mon, 1 Sep 2025 15:36:26 +0900 Subject: [PATCH] Remove unused network configurations and service links in compose-plesk.yaml to streamline Docker setup. --- compose-plesk.yaml | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/compose-plesk.yaml b/compose-plesk.yaml index aef4cef4..fe6d5d56 100644 --- a/compose-plesk.yaml +++ b/compose-plesk.yaml @@ -28,8 +28,6 @@ services: restart: unless-stopped depends_on: - backend - networks: - - portal-network healthcheck: test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/api/health"] interval: 30s @@ -43,10 +41,6 @@ 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 @@ -59,8 +53,6 @@ services: depends_on: - database - cache - networks: - - portal-network # Wait for DB, run migrations, then start command: > sh -c " @@ -85,8 +77,6 @@ services: volumes: - postgres_data:/var/lib/postgresql/data restart: unless-stopped - networks: - - portal-network healthcheck: test: ["CMD-SHELL", "pg_isready -U portal -d portal_prod"] interval: 10s @@ -101,8 +91,6 @@ services: volumes: - redis_data:/data restart: unless-stopped - networks: - - portal-network healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 10s @@ -114,8 +102,3 @@ volumes: driver: local redis_data: driver: local - -networks: - portal-network: - external: true - name: bridge