Reference links
https://www.timescale.com/blog/use-open-source-llms-in-postgresql-with-ollama-and-pgai
https://github.com/timescale/pgai/blob/main/docs/ollama.md
https://docs.timescale.com/self-hosted/latest/install/installation-docker/
- Pulling a Docker Image:
docker pull timescale/timescaledb-ha:pg16
2 Running a Docker Container:
docker run -d --name timescaledb -p 5432:5432 -e POSTGRES_PASSWORD=Root1234_ timescale/timescaledb-ha:pg16
access host url within docker container
1. get HOST_IP with `ip addr show`
2. docker run -d --name timescaledb -p 5432:5432 -e HOST_IP=10.192.12.14 -e POSTGRES_PASSWORD=Root1234_ timescale/timescaledb-ha:pg16
3. test it within container
curl http://$HOST_IP:11434
3 Installing PostgreSQL Client:
sudo apt-get install postgresql-client
4 Connecting to PostgreSQL Using psql:
psql -h localhost -p 5432 -U postgres postgres
5 Using pgcli to Connect to PostgreSQL:
pgcli postgres://postgres:Root1234_@localhost:5432/postgres