Skip to content
Discussion options

You must be logged in to vote

INVENTREE_WEB_PORT is the internal Gunicorn port, so leave it at 8000. The public port is controlled by Caddy and the Docker port mapping.

For a single HTTP endpoint on port 5143, use:

INVENTREE_SITE_URL="http://192.168.100.10:5143"
INVENTREE_HTTP_PORT=5143
INVENTREE_WEB_PORT=8000

Then change the proxy mapping to:

ports:
  - "${INVENTREE_HTTP_PORT}:${INVENTREE_HTTP_PORT}"

Remove the HTTPS mapping if you do not want the container to publish port 443.

Your current https://... site URL makes Caddy serve HTTPS. With the explicit http://...:5143 address, Caddy listens on port 5143 inside the container, so the mapping must be 5143:5143.

After changing it, verify the resolved configuration with:

d…

Replies: 5 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by tmacsevern
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@lMysticl
Comment options

@tmacsevern
Comment options

@lMysticl
Comment options

@tmacsevern
Comment options

@tmacsevern
Comment options

Comment options

You must be logged in to vote
1 reply
@tmacsevern
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants