mirror of https://github.com/THUDM/ChatGLM2-6B
21 lines
419 B
YAML
21 lines
419 B
YAML
version: "3"
|
|
services:
|
|
stable-diffusion:
|
|
build:
|
|
dockerfile: ./dockerfile
|
|
context: .
|
|
runtime: nvidia
|
|
environment:
|
|
- NVIDIA_VISIBLE_DEVICES=all
|
|
working_dir: /app
|
|
ports:
|
|
- "9000:8000"
|
|
command: bash -c "python web_demo.py"
|
|
deploy:
|
|
resources:
|
|
reservations:
|
|
devices:
|
|
- driver: nvidia
|
|
count: 1
|
|
capabilities: [gpu]
|