Skip to content

Commit

Permalink
🐛 Use docker with gpu
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianKropp committed Oct 15, 2024
1 parent ab4fad3 commit 7e7e31d
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,13 @@ services:
# - "8001:8001"
# - "5000:5000"
# - "5001:5001"
ipc: host
tty: true
stdin_open: true
deploy:
resources:
reservations:
devices:
- driver: nvidia
capabilities: [gpu]
- driver: nvidia
count: -1
capabilities: ["gpu"]

prometheus:
image: prom/prometheus:latest
Expand All @@ -69,7 +67,6 @@ services:
restart: unless-stopped
ports:
- "8000:5000"
tty: true
healthcheck:
test: ['CMD-SHELL', './venv/bin/python scripts/healthcheck.py']
command: --ssl --ga-id MY-GA-ID
Expand All @@ -79,8 +76,9 @@ services:
resources:
reservations:
devices:
- driver: nvidia
capabilities: [gpu]
- driver: nvidia
count: -1
capabilities: ["gpu"]
networks:
- bbb-bot

Expand Down

0 comments on commit 7e7e31d

Please sign in to comment.