mirror of
https://github.com/harry0703/MoneyPrinterTurbo.git
synced 2026-02-22 00:47:22 +08:00
27 lines
679 B
YAML
27 lines
679 B
YAML
version: "3"
|
|
|
|
x-common-volumes: &common-volumes
|
|
- ./config.toml:/MoneyPrinterTurbo/config.toml
|
|
- ./storage:/MoneyPrinterTurbo/storage
|
|
|
|
services:
|
|
webui:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: "webui"
|
|
ports:
|
|
- "8501:8501"
|
|
command: ["streamlit", "run", "./webui/Main.py","--browser.serverAddress=0.0.0.0","--server.enableCORS=True","--browser.gatherUsageStats=False"]
|
|
volumes: *common-volumes
|
|
restart: always
|
|
api:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: "api"
|
|
ports:
|
|
- "8080:8080"
|
|
command: [ "python3", "main.py" ]
|
|
volumes: *common-volumes
|
|
restart: always |