GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - jdaarevalo/docker_postgres_with_data

BranchesTags
Open more actions menu

Latest commit

 

History

12 Commits
12 Commits

Folders and files

NameName
Last commit message
Last commit date
images
images
 
 
sql
sql
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
docker-compose.yml
docker-compose.yml
 
 

Repository files navigation

Creating and filling a Postgres DB with Docker Compose

This project create tables and fill the tables in a Postgres data base. The tables and data that create are in sql/ folder

Read the explanation here Creating and filling a Postgres DB with Docker compose

ER Diagram

The ER Diagram of DB is this:

ER_Diagram

DB Variables

Set the variables in sql/fill_tables.sql

Parameter Description
number_of_sales Number of rows to create in the table sale
number_of_users Number of rows to create in the table users
number_of_products Number of rows to create in the table product
number_of_stores Number of rows to create in the table store
number_of_coutries Number of rows to create in the table country
number_of_cities Number of rows to create in the table city
number_of_status_names Number of rows to create in the table status_name
start_date Date of the first sale
end_date Date of the last sale

Params

If want change this params in docker-compose.yaml

Parameter Description
POSTGRES_USER The Postgres user to connect postgres
POSTGRES_PASSWORD The Postgres password to connect postgres
POSTGRES_DB The Postgres database name to connect postgres
port The port mapped by Postgres is 5432 in your container. In this example, use the port 5438 on the host machine

Run

$ docker-compose up

About

No description, website, or topics provided.

Resources

Readme
Activity

Stars

166 stars

Watchers

4 watching

Forks

81 forks
Report repository

Releases

Packages

Contributors

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.