From e5447280af0a0babb405a71b0a6e015febe0021c Mon Sep 17 00:00:00 2001 From: faycal Date: Mon, 10 Mar 2025 22:13:50 +0100 Subject: [PATCH] fix(dockerfile): port fix --- Dockerfile | 4 ++-- docker-compose.yml | 20 ++++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index d110240..4888f6b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,10 +29,10 @@ RUN pip install --no-cache-dir -r requirements.txt COPY . . # Expose the port the app runs on -EXPOSE 8501 +EXPOSE 8080 # Command to run the application -CMD ["streamlit", "run", "./webui/Main.py","--browser.serverAddress=127.0.0.1","--server.enableCORS=True","--browser.gatherUsageStats=False"] +CMD ["streamlit", "run", "./webui/Main.py","--browser.serverAddress=127.0.0.1","--server.enableCORS=True","--browser.gatherUsageStats=False","--server.port=8080"] # 1. Build the Docker image using the following command # docker build -t moneyprinterturbo . diff --git a/docker-compose.yml b/docker-compose.yml index 2fc8a2b..6896971 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,16 +2,16 @@ x-common-volumes: &common-volumes - ./:/MoneyPrinterTurbo services: - webui: - build: - context: . - dockerfile: Dockerfile - container_name: "webui" - ports: - - "8501:8501" - command: [ "streamlit", "run", "./webui/Main.py","--browser.serverAddress=127.0.0.1","--server.enableCORS=True","--browser.gatherUsageStats=False" ] - volumes: *common-volumes - restart: always + # webui: + # build: + # context: . + # dockerfile: Dockerfile + # container_name: "webui" + # ports: + # - "8501:8501" + # command: [ "streamlit", "run", "./webui/Main.py","--browser.serverAddress=127.0.0.1","--server.enableCORS=True","--browser.gatherUsageStats=False" ] + # volumes: *common-volumes + # restart: always api: build: context: .