version: '3.8' | |
services: | |
your-service: | |
image: mi-imagen | |
shm_size: '2gb' | |
ports: | |
- "7860:7860" | |
deploy: | |
resources: | |
limits: | |
memory: 2G | |
reservations: | |
devices: | |
- driver: nvidia | |
count: 1 | |
capabilities: [ gpu ] | |
version: '3.8' | |
services: | |
your-service: | |
image: mi-imagen | |
shm_size: '2gb' | |
ports: | |
- "7860:7860" | |
deploy: | |
resources: | |
limits: | |
memory: 2G | |
reservations: | |
devices: | |
- driver: nvidia | |
count: 1 | |
capabilities: [ gpu ] | |