Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Run a Postgres 13 container instance and create 'cpsdb' database.

Code Block
languagebash
sudo docker run -d \
	--name postgres-instance \
	-e POSTGRES_DB=cpsdb \
	-e POSTGRES_USER=cps \
	-e POSTGRES_PASSWORD=cps \
	postgres:13.0

NB. On Linux the IP address of the Docker container (DB_HOST) can be determined using following command
('postgres-instance' is a container name)

Code Block
languagebash
sudo docker inspect postgres-instance | grep IPAddress

...