Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ejdecena/lab_database
This repository is intended to be a platform or academic laboratory for database design and implementation. This laboratory is based on #Docker technology to lift #Postgres 15 and #PgAdmin 4 services in a #Linux environment, mainly.
https://github.com/ejdecena/lab_database
debian debian-linux docker docker-compose linux pgadmin-docker pgadmin4 postgres postgresql
Last synced: about 1 month ago
JSON representation
This repository is intended to be a platform or academic laboratory for database design and implementation. This laboratory is based on #Docker technology to lift #Postgres 15 and #PgAdmin 4 services in a #Linux environment, mainly.
- Host: GitHub
- URL: https://github.com/ejdecena/lab_database
- Owner: ejdecena
- Created: 2023-02-13T20:53:02.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-09-24T17:52:05.000Z (over 1 year ago)
- Last Synced: 2024-10-13T17:42:39.366Z (3 months ago)
- Topics: debian, debian-linux, docker, docker-compose, linux, pgadmin-docker, pgadmin4, postgres, postgresql
- Language: Shell
- Homepage:
- Size: 347 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Database Laboratory.
This repository is intended to be a platform or academic laboratory for database design and implementation. This laboratory is based on Docker technology to lift PostgreSQL 15 and pgAdmin4 services in a Linux environment, mainly.
### To install:
```bash
$ git clone https://github.com/ejdecena/lab_database
$ cd lab_database
$ sudo apt install make
$ make install
$ sudo usermod -aG docker $USER
$ sudo service docker start
close the terninal.
```## To run the laboratory:
```bash
$ make run
```* GO TO http://```{PGADMIN_ADDRESS}```:```{PGADMIN_PORT}```
* Username: ```[email protected]```.
* Password: ```{PGADMIN_DEFAULT_PASSWORD}``` in ```.env``` file.## To login in pgAdmin4:
![Login Pgadmin parameters](/images/login.png "Login Pgadmin parameters").## To register a server in pgAdmin4:
When you log in for the first time, you will have to register a server. To do this, right click on the Servers option:![Register Server](/images/register_server.png "Register Server").
## To connect pgAdmin4 to PostgreSQL:
The data for the connection are:
* Host name / address: ```postgres_db```
* Port: ```5432```
* Database: ```{POSTGRES_DB}``` in ```.env``` file.
* Username: ```{POSTGRES_USER}``` in ```.env``` file.
* Pass: ```{POSTGRES_PASSWORD}``` in ```.env``` file.![Server Connection](/images/server_connection.png "Server Connection").
## To access the PostgreSQL container:
```bash
$ make psql
```## To look the logs of the laboratory:
```bash
$ make logs
```## To stop the laboratory:
```bash
$ make stop
```## To restart the laboratory:
```bash
$ make restart
```## To reset the databases of laboratory:
```bash
$ make reset
```