refactor: Change port mapping to expose in docker-compose.yml

Updated the docker-compose.yml to use 'expose' instead of 'ports' for the service, aligning with Dokploy's configuration practices. This change enhances internal service communication while maintaining health check functionality.
This commit is contained in:
ubden 2025-10-14 10:11:43 +03:00
parent e2730e894e
commit 51f71f2abc

View file

@ -174,8 +174,8 @@ services:
- websocket
networks:
- erpnext-network
ports:
- "${HTTP_PORT:-8080}:8080"
expose:
- "8080"
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8080/api/method/ping || exit 1"]
interval: 30s