sirrluc
sirrluc6mo ago

Hi, im trying to set up marimo on remote

Hi, im trying to set up marimo on remote server with docker and im running into some issues. Im quite new to docker and also marimo, so im not sure if im choosing the right approach. My setup consists of these steps: connecting to server via ssh ssh -L 8000:localhost8010 username@ip -p port dockerfile looks like this:
FROM python:3.10
WORKDIR /MarimoTest
ENV NAME MarimoTestEnv
EXPOSE 8000
CMD ["marimo","edit","--headless","--host","0.0.0.0","--port","8000"]
FROM python:3.10
WORKDIR /MarimoTest
ENV NAME MarimoTestEnv
EXPOSE 8000
CMD ["marimo","edit","--headless","--host","0.0.0.0","--port","8000"]
then im running docker container like this docker run -it -p 8010:8000 marimo-test the url which is then displayed works only after i change the 0.0.0.0 adress to localhost, i would like to fix it so the default url is set to localhost but i am not sure how. i have tried setting --host to default value, which i reckon is localhost, but that didnt help.
3 Replies
Myles Scolnick
Myles Scolnick6mo ago
the displayed log of the url is really just a prettyprint of marimo's host/port that you passed in the CLI. but the accessible URL (from your perspective) is localhost:8010. we do have --proxy , in a way you are treating Docker as a reverse proxy, that may work if you'd like to try that
sirrluc
sirrlucOP6mo ago
Thank you sm for suggestion! Problem fixed :)).
Myles Scolnick
Myles Scolnick6mo ago
cc nice win @dmad on your addition!