Docker is a virtual environment with all the required software included. See all other benefits.
- Copy the
.env.example
to.env
and fillFILL_THIS
values in it.
It will download, install and prepare all the required software.
./setup-db-server.sh
This transletes the machines address to the domain-name.
172.72.4.1 db1.pg.local
- Make sure that this server is running first (
./start-db-server.sh
). - Open Your PostgreSQL Admin.
- IP: 172.72.4.1
- Port: 5432
- Password You choosed.
./start-db-server.sh
- Start containers once the setup has been done../connect-to-db-server.sh
- Connect to the container/VM../backup-db.sh
- Will backup the current DB todb-import-export/
folder../htop-show-server-processes.sh
- Show containers running processes using thehtop
command in it../import-db.sh
- Rename the fileimport-me.gz
and put it intodb-import-export/
folder../open-postgresql-command-line.sh
- Opens thepostgresql
command line inside the container../restart-postgresql-service.sh
- Restart the Postgres service../status-postgresql-service.sh
- See if the Postgres service is running../restart-db-server.sh
- Restart the container (not the Postgres service).