Publish on host loopback for NPMplus with host networking

NPMplus runs with network_mode: host, so it cannot reach the container by
name on a shared Docker network. Publish the app on 127.0.0.1:4181 instead
and drop the NPM_NETWORK setting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
uhlwoogiandClaude Opus 5.5 committed 2026-10-02 22:11:06 +00:00
1 parent 5b7b73225f
commit a51d5825ce
3 files changed
+14 -16

No files matched your search

+4 -2
View File
@@ -1,8 +1,10 @@
# Stack settings. In Portainer, enter these under the stack's "Environment variables".
# For the docker compose CLI, copy this file to .env next to compose.yaml. Never commit the completed file.
# Docker network Nginx Proxy Manager is attached to (Portainer > Networks shows the name).
NPM_NETWORK=npm_default
# Host port the app listens on, bound to loopback so only NPMplus (host networking) can reach it.
# Change PROPOSAL_BOT_PORT if 4181 is already taken on the host.
PROPOSAL_BOT_BIND=127.0.0.1
PROPOSAL_BOT_PORT=4181
# Absolute host folders. The data folder must be writable by UID 1000.
PROPOSAL_BOT_DATA_HOST_PATH=/opt/proposal-bot/data