This commit is contained in:
2024-06-15 17:53:52 +08:00
parent f2e426fddd
commit 3320482e12

View File

@@ -0,0 +1,32 @@
version: '3.8'
services:
ubuntu-finetune:
build:
context: .
dockerfile: Dockerfile
volumes:
- ./src:/bbtft
container_name: ubuntu-finetune
pull_policy: if_not_present
tty: true
restart: unless-stopped
image: hotwa/finetune:test
ports:
- 3227:22
environment:
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=compute,utility
networks:
- network_finetune
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
networks:
network_finetune:
name: network_finetune