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
|
# 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
|
||||||
@ -113,8 +117,5 @@ volumes:
|
|||||||
|
|
||||||
networks:
|
networks:
|
||||||
portal-network:
|
portal-network:
|
||||||
driver: bridge
|
external: true
|
||||||
driver_opts:
|
name: bridge
|
||||||
com.docker.network.enable_ipv6: "false"
|
|
||||||
enable_ipv6: false
|
|
||||||
name: portal-plesk-network
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user