Skip to content

Commit

Permalink
chore: Update docker config (#1321)
Browse files Browse the repository at this point in the history
* chore: switch to tritonserver 24.01 for GPU

* chore: add the restart_policy to statsd and postgres_exporter services
  • Loading branch information
raphael0202 authored Feb 28, 2024
1 parent 0f2ee58 commit 09dc8b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
13 changes: 2 additions & 11 deletions docker/ml-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,8 @@ version: "3.9"

services:
triton:
# restart: $RESTART_POLICY
# This is a custom built of Triton with:
# - GRPC/HTTP support
# - GPU support
# - Tensorflow and ONNX support
# This allows us to reduce the image size
# Build with `python3 compose.py --backend tensorflow --backend
# onnxruntime`
# Release (23.04 version):
# https://github.com/triton-inference-server/server/releases/tag/v2.33.0
image: ghcr.io/openfoodfacts/triton:23.04-gpu
restart: $RESTART_POLICY
image: nvcr.io/nvidia/tritonserver:24.01-py3
ports:
- ${TRITON_EXPOSE_HTTP:-8000}:8000
- ${TRITON_EXPOSE_GRPC:-8001}:8001
Expand Down
2 changes: 2 additions & 0 deletions docker/monitor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ services:
depends_on:
- statsd
statsd:
restart: $RESTART_POLICY
image: prom/statsd-exporter:v0.22.2
volumes:
- ./statsd.conf:/statsd/statsd.conf
Expand All @@ -19,6 +20,7 @@ services:
ports:
- ${STATSD_EXPOSE:-9102}:9102
postgres_exporter:
restart: $RESTART_POLICY
image: prometheuscommunity/postgres-exporter:v0.11.1
environment:
- DATA_SOURCE_NAME=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:5432/${POSTGRES_DB}?sslmode=disable
Expand Down

0 comments on commit 09dc8b4

Please sign in to comment.