fix: bind app host ports to loopback

This commit is contained in:
Saravana Kumar 2026-05-27 21:29:22 +00:00
parent 1c09e4798b
commit e29cc58ae7

View File

@ -106,7 +106,7 @@ services:
grafana: grafana:
image: grafana/grafana:11.4.0 image: grafana/grafana:11.4.0
ports: ports:
- '3000:3000' - '127.0.0.1:3000:3000'
environment: environment:
- GF_SECURITY_ADMIN_USER=admin - GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=bytelyst - GF_SECURITY_ADMIN_PASSWORD=bytelyst
@ -218,7 +218,7 @@ services:
- '--accesslog.format=json' - '--accesslog.format=json'
ports: ports:
- '80:80' - '80:80'
- '8080:8080' - '127.0.0.1:8080:8080'
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro - /var/run/docker.sock:/var/run/docker.sock:ro
depends_on: depends_on:
@ -340,7 +340,7 @@ services:
context: . context: .
dockerfile: dashboards/admin-web/Dockerfile dockerfile: dashboards/admin-web/Dockerfile
ports: ports:
- '3001:3001' - '127.0.0.1:3001:3001'
env_file: env_file:
- .env.ecosystem - .env.ecosystem
environment: environment:
@ -365,7 +365,7 @@ services:
context: . context: .
dockerfile: dashboards/tracker-web/Dockerfile dockerfile: dashboards/tracker-web/Dockerfile
ports: ports:
- '3003:3003' - '127.0.0.1:3003:3003'
env_file: env_file:
- .env.ecosystem - .env.ecosystem
environment: environment:
@ -608,7 +608,7 @@ services:
context: ../learning_ai_efforise context: ../learning_ai_efforise
dockerfile: backend/Dockerfile dockerfile: backend/Dockerfile
ports: ports:
- '4020:4020' - '127.0.0.1:4020:4020'
env_file: env_file:
- .env.ecosystem - .env.ecosystem
environment: environment:
@ -640,7 +640,7 @@ services:
NEXT_PUBLIC_PLATFORM_SERVICE_URL: http://localhost:4003 NEXT_PUBLIC_PLATFORM_SERVICE_URL: http://localhost:4003
NEXT_PUBLIC_PRODUCT_ID: lysnrai NEXT_PUBLIC_PRODUCT_ID: lysnrai
ports: ports:
- '3002:3002' - '127.0.0.1:3002:3002'
environment: environment:
- NODE_ENV=production - NODE_ENV=production
- PORT=3002 - PORT=3002
@ -667,7 +667,7 @@ services:
NEXT_PUBLIC_BACKEND_URL: http://localhost:4011 NEXT_PUBLIC_BACKEND_URL: http://localhost:4011
NEXT_PUBLIC_PLATFORM_SERVICE_URL: http://localhost:4003 NEXT_PUBLIC_PLATFORM_SERVICE_URL: http://localhost:4003
ports: ports:
- '3030:3030' - '127.0.0.1:3030:3030'
environment: environment:
- NODE_ENV=production - NODE_ENV=production
- PORT=3030 - PORT=3030
@ -692,7 +692,7 @@ services:
GITEA_NPM_HOST: ${GITEA_NPM_HOST:-host.docker.internal} GITEA_NPM_HOST: ${GITEA_NPM_HOST:-host.docker.internal}
NEXT_PUBLIC_PLATFORM_SERVICE_URL: http://localhost:4003 NEXT_PUBLIC_PLATFORM_SERVICE_URL: http://localhost:4003
ports: ports:
- '3035:3035' - '127.0.0.1:3035:3035'
environment: environment:
- NODE_ENV=production - NODE_ENV=production
- PORT=3035 - PORT=3035
@ -718,7 +718,7 @@ services:
NEXT_PUBLIC_API_URL: http://localhost:4017 NEXT_PUBLIC_API_URL: http://localhost:4017
NEXT_PUBLIC_PLATFORM_URL: http://localhost:4003/api NEXT_PUBLIC_PLATFORM_URL: http://localhost:4003/api
ports: ports:
- '3040:3040' - '127.0.0.1:3040:3040'
environment: environment:
- NODE_ENV=production - NODE_ENV=production
- PORT=3040 - PORT=3040
@ -745,7 +745,7 @@ services:
NEXT_PUBLIC_NOTES_API_URL: http://localhost:4016/api NEXT_PUBLIC_NOTES_API_URL: http://localhost:4016/api
NEXT_PUBLIC_PLATFORM_SERVICE_URL: http://localhost:4003/api NEXT_PUBLIC_PLATFORM_SERVICE_URL: http://localhost:4003/api
ports: ports:
- '3045:3045' - '127.0.0.1:3045:3045'
environment: environment:
- NODE_ENV=production - NODE_ENV=production
- PORT=3045 - PORT=3045
@ -770,7 +770,7 @@ services:
GITEA_NPM_HOST: ${GITEA_NPM_HOST:-host.docker.internal} GITEA_NPM_HOST: ${GITEA_NPM_HOST:-host.docker.internal}
NEXT_PUBLIC_PLATFORM_SERVICE_URL: http://localhost:4003 NEXT_PUBLIC_PLATFORM_SERVICE_URL: http://localhost:4003
ports: ports:
- '3050:3050' - '127.0.0.1:3050:3050'
environment: environment:
- NODE_ENV=production - NODE_ENV=production
- PORT=3050 - PORT=3050
@ -800,7 +800,7 @@ services:
NEXT_PUBLIC_API_URL: http://localhost:4018 NEXT_PUBLIC_API_URL: http://localhost:4018
NEXT_PUBLIC_PLATFORM_URL: http://localhost:4003 NEXT_PUBLIC_PLATFORM_URL: http://localhost:4003
ports: ports:
- '3060:3060' - '127.0.0.1:3060:3060'
environment: environment:
- NODE_ENV=production - NODE_ENV=production
- PORT=3060 - PORT=3060
@ -827,7 +827,7 @@ services:
NEXT_PUBLIC_BACKEND_URL: http://localhost:4019 NEXT_PUBLIC_BACKEND_URL: http://localhost:4019
NEXT_PUBLIC_PLATFORM_URL: http://localhost:4003 NEXT_PUBLIC_PLATFORM_URL: http://localhost:4003
ports: ports:
- '3070:3070' - '127.0.0.1:3070:3070'
environment: environment:
- NODE_ENV=production - NODE_ENV=production
- PORT=3070 - PORT=3070
@ -850,7 +850,7 @@ services:
context: ../learning_ai_efforise context: ../learning_ai_efforise
dockerfile: client/Dockerfile dockerfile: client/Dockerfile
ports: ports:
- '3080:3080' - '127.0.0.1:3080:3080'
depends_on: depends_on:
efforise-backend: efforise-backend:
condition: service_healthy condition: service_healthy
@ -872,7 +872,7 @@ services:
GITEA_NPM_HOST: ${GITEA_NPM_HOST:-host.docker.internal} GITEA_NPM_HOST: ${GITEA_NPM_HOST:-host.docker.internal}
OLLAMA_URL: http://host.docker.internal:11434 OLLAMA_URL: http://host.docker.internal:11434
ports: ports:
- '3075:3075' - '127.0.0.1:3075:3075'
environment: environment:
- NODE_ENV=production - NODE_ENV=production
- PORT=3075 - PORT=3075