Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Run PostgresML + goodies in one command

License

NotificationsYou must be signed in to change notification settings

AthennaMind/postgresml-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RunPostgresML,TimescaleDB andpgAdmin in one command. This repository contains adocker-compose file to run a PostgresML database with TimescaleDB and a PgAdmin instance. The stack is configured to use theNVIDIA Container Toolkit to enable GPU support for the PostgresML database. Additionally there are bulgarian dictionaries that provide full text search support for the Bulgarian language that can be spicy combined with the functionality that PostgresML provides to achieve wonderful stuff.

TimescaleDB currently is not included in the stack. It will be added in the future.

Table of Contents

Requirements

Install the NVIDIA Container Toolkit on Ubuntu 22.04

curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey| sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \&& curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list| \    sed's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g'| \    sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.listsudo apt-get updatesudo apt-get install -y nvidia-container-toolkit

Usage

git clone https://github.com/athennamind/postgresml-docker.gitcd postgresml-docker

Before running the containers, take a look at the.env file and adjust the values to your needs. By default the stack is configured to use all available GPUs as specified inNVIDIA_VISIBLE_DEVICES. If you have a single GPU, you can leave the default value. For multiple GPUs please refer to theDocker Documentation to pin specific GPUs.

vim .env# ..........docker compose up -d# wait for the containers to startdocker compose logs -f
  • Validate that we are all good
dockerexec -it pgml psql -U postgres -d pgml -c"SELECT pgml.xgboost_version();" xgboost_version----------------- 1.62(1 row)
  • Open your browser and navigate tohttp://localhost:8000 to access the PostgresML dashboard/ui/whatever.
  • Open your browser and navigate tohttp://localhost:8001 to access the PgAdmin instance.

If you want to tweak the postgres config, do by editing theconfigs/pgml/postgressql.conf file. Do not forget to restart the compose after.

System Requirements

This compose was used on the following system:

  • Ubuntu 22.04
  • Docker version 25.0.4, build 1a576c5
  • 16GB of RAM
  • 8 CPU cores
  • 2x NVIDIA RTX 3090
  • 1TB Local SSD Storage

Please always consider benchmark and adjusting the resources to your needs, especially if you are going to run this compose in a production environment.

Cleanup

To stop and remove the containers and volumes, run the following command:

docker compose downdocker volume ls| grep"postgresml-docker"| awk'{print $2}'| grep -v"VOLUME"| xargs docker volume rm -f

Releases

No releases published

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp