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
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- backend
|
- backend
|
||||||
networks:
|
|
||||||
- portal-network
|
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/api/health"]
|
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/api/health"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
@ -43,10 +41,6 @@ services:
|
|||||||
# Bind to loopback; Plesk nginx will proxy via Proxy Rules
|
# Bind to loopback; Plesk nginx will proxy via Proxy Rules
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:4000:4000"
|
- "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
|
# Secrets and server-side config only
|
||||||
env_file:
|
env_file:
|
||||||
- /var/www/vhosts/asolutions.jp/private/env/portal-backend.env
|
- /var/www/vhosts/asolutions.jp/private/env/portal-backend.env
|
||||||
@ -59,8 +53,6 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- database
|
- database
|
||||||
- cache
|
- cache
|
||||||
networks:
|
|
||||||
- portal-network
|
|
||||||
# Wait for DB, run migrations, then start
|
# Wait for DB, run migrations, then start
|
||||||
command: >
|
command: >
|
||||||
sh -c "
|
sh -c "
|
||||||
@ -85,8 +77,6 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- postgres_data:/var/lib/postgresql/data
|
- postgres_data:/var/lib/postgresql/data
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
|
||||||
- portal-network
|
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U portal -d portal_prod"]
|
test: ["CMD-SHELL", "pg_isready -U portal -d portal_prod"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
@ -101,8 +91,6 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- redis_data:/data
|
- redis_data:/data
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
|
||||||
- portal-network
|
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "redis-cli", "ping"]
|
test: ["CMD", "redis-cli", "ping"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
@ -114,8 +102,3 @@ volumes:
|
|||||||
driver: local
|
driver: local
|
||||||
redis_data:
|
redis_data:
|
||||||
driver: local
|
driver: local
|
||||||
|
|
||||||
networks:
|
|
||||||
portal-network:
|
|
||||||
external: true
|
|
||||||
name: bridge
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user