optimize dockerfile

This commit is contained in:
harry
2024-04-11 13:40:02 +08:00
parent 740960b0ff
commit 64bfb21bf0
2 changed files with 13 additions and 13 deletions

View File

@@ -1,8 +1,7 @@
version: "3"
x-common-volumes: &common-volumes
- ./config.toml:/MoneyPrinterTurbo/config.toml
- ./storage:/MoneyPrinterTurbo/storage
- ./:/MoneyPrinterTurbo
services:
webui:
@@ -12,7 +11,7 @@ services:
container_name: "webui"
ports:
- "8501:8501"
command: ["streamlit", "run", "./webui/Main.py","--browser.serverAddress=0.0.0.0","--server.enableCORS=True","--browser.gatherUsageStats=False"]
command: [ "streamlit", "run", "./webui/Main.py","--browser.serverAddress=127.0.0.1","--server.enableCORS=True","--browser.gatherUsageStats=False" ]
volumes: *common-volumes
restart: always
api: