返回 MoneyPrinterTurbo
docker-compose.release.yml
根目录 / docker-compose.release.yml
1 x-common-volumes: &common-volumes
2 - ./config.toml:/MoneyPrinterTurbo/config.toml
3 - ./storage:/MoneyPrinterTurbo/storage
4
5 services:
6 webui:
7 image: ghcr.io/harry0703/moneyprinterturbo:latest
8 container_name: "moneyprinterturbo-webui"
9 ports:
10 - "127.0.0.1:8501:8501"
11 command: [ "streamlit", "run", "./webui/Main.py", "--server.address=0.0.0.0", "--server.port=8501", "--browser.serverAddress=127.0.0.1", "--server.enableCORS=True", "--browser.gatherUsageStats=False", "--server.showEmailPrompt=False" ]
12 volumes: *common-volumes
13 restart: always
14 api:
15 image: ghcr.io/harry0703/moneyprinterturbo:latest
16 container_name: "moneyprinterturbo-api"
17 ports:
18 - "127.0.0.1:8080:8080"
19 command: [ "python3", "main.py" ]
20 volumes: *common-volumes
21 restart: always
22
22 lines YAML