...
Run a Postgres 13 container instance and create 'cpsdb' database.
Code Block | ||
---|---|---|
| ||
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 | ||
---|---|---|
| ||
sudo docker inspect postgres-instance | grep IPAddress |
...