Remove unused network configurations and service links in compose-plesk.yaml to streamline Docker setup.
This commit is contained in:
parent
0c2e5de9b0
commit
2dd049fcd4
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user