Replies: 2 comments 5 replies
-
If you are using docker, which is the only supported way, you could set your docker compose file to:
The number before the colon describes the local port that is used on your machine. But depending on you situation (if you want to have your mealie accessible by parties outside your network) i would strongly advise you use a reverse proxy including an https certificate instead of running over a unsecure http connection. |
Beta Was this translation helpful? Give feedback.
-
Yes, I am running Mealie using Docker. It's only exposed in my home network, so I don't have to bother with a reverse proxy as I have a local DNS entry in my DNS resolver for the Docker container. Still, what's the logic behind not documenting the environment variable to change the exposed port for the app? |
Beta Was this translation helpful? Give feedback.
-
Hey,
I run Mealie on my homeserver and I want to expose the application under the default HTTP port, 80. After searching through the documentation, I didn't find anything to achieve this, beside the API_PORT in the Backend configuration. So even though it says Do not change this if you're running in Docker, I gave it a try, setting the variable to 80. As expected, it didn't work, but then I looked at how the Dockerfile and I've found out about the APP_PORT variable, which I also set to 80 by passing it when the container is built and everything works as expected. I can now access Mealie through the default HTTP port.
So with this in mind, I believe API_PORT and APP_PORT should be turned into one. The documentation should document this change. The warning Do not change this if you're running in Docker should also be removed.
What do you think? I could send a PR to proceed with the proposed changes.
Beta Was this translation helpful? Give feedback.
All reactions