add docker deployment

pull/313/head
daihui 2023-07-15 11:23:17 +08:00
parent 536971b487
commit 85178e384a
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ version: "3"
services: services:
stable-diffusion: stable-diffusion:
build: build:
dockerfile: ./Dockerfile dockerfile: ./dockerfile
context: . context: .
runtime: nvidia runtime: nvidia
environment: environment:
@ -10,7 +10,7 @@ services:
working_dir: /app working_dir: /app
ports: ports:
- "9000:8000" - "9000:8000"
command: bash -c "python web_demo2.py" command: bash -c "python api.py"
deploy: deploy:
resources: resources:
reservations: reservations: