Database setup
Container installation:
Section titled “Container installation:”- Go to
pep_dbdirectory and then run the following lines. - Build the docker:
docker build -t pep-db ./- Run the docker:
docker run --name pep-db -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=docker -p 5432:5432 -d pep-db`- Start it:
docker start pep-dbNow db is installed
How to connect to the docker manually:
Section titled “How to connect to the docker manually:”docker exec -it 65f bashpsql -U postgres -d pep-dbIf you have your own database, you can initialize a connection using pepdbagent. The pepdbagent will create a new database schema if it doesn't already exist, or throw an exception if the schema is incorrect.