Closed Ashes47 closed 8 months ago
@Ashes47 try this:
version: "3.8"
services:
fooocus-api:
build:
context: .
dockerfile: Dockerfile
container_name: fooocus-api
volumes:
- .:/app
ports:
- 8888:8888
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
Can we please get a docker-compose file as well.
Thanks a lot 😄