mirror of
https://github.com/linyqh/NarratoAI.git
synced 2025-12-11 18:42:49 +00:00
31 lines
699 B
YAML
31 lines
699 B
YAML
x-common-volumes: &common-volumes
|
|
- ./:/NarratoAI
|
|
|
|
services:
|
|
webui:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
image: linyq1/narratoai:latest
|
|
container_name: "webui"
|
|
ports:
|
|
- "8501:8501"
|
|
command: [ "bash", "webui.sh" ]
|
|
volumes: *common-volumes
|
|
environment:
|
|
- "VPN_PROXY_URL=http://host.docker.internal:7890"
|
|
restart: always
|
|
api:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
image: linyq1/narratoai:latest
|
|
container_name: "api"
|
|
ports:
|
|
- "8502:8080"
|
|
command: [ "python3", "main.py" ]
|
|
volumes: *common-volumes
|
|
environment:
|
|
- "VPN_PROXY_URL=http://host.docker.internal:7890"
|
|
restart: always
|