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.
This commit is contained in:
parent
d9c7ad66ad
commit
0c2e5de9b0
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user