From 51f71f2abc10605f522e255e1263a8524d71ff2e Mon Sep 17 00:00:00 2001 From: ubden Date: Tue, 14 Oct 2025 10:11:43 +0300 Subject: [PATCH] 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. --- dokploy/docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dokploy/docker-compose.yml b/dokploy/docker-compose.yml index 11f76b79..55e381f2 100644 --- a/dokploy/docker-compose.yml +++ b/dokploy/docker-compose.yml @@ -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