postgres
host: localhost port: 5432 db: timeseriesdb user: timeseriesuser pass: timeseriespass
start db container, create basic db:
bash db_up.shtear down db container:
bash db_down.shcheck if container running:
docker ps --allrun container (in the background):
docker-compose up --detachconnect to postgres and check the table found in init.sql:
docker exec --interactive --tty my_postgres_container psql --username=myuser --dbname=mydatabaseverify it's working:
select * from catsrestart container:
docker compose down --volumes
docker compose up --detach