Skip to content

PostgreSQL and PgBouncer basic setup to quickly deploy your database infrastructure on any server

License

Notifications You must be signed in to change notification settings

wiwimacher/postgres-docker-deploy-configuration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Postgres, pgbouncer and pgwatch setup on your server

Getting started:

  1. At first run bash script to generate all necessary files (envs, pgbouncer configuration files and postgres initial transaction):

    bash generate <postgres_user> <postgres_password> <postgres_database_name>
    
  2. Then update healthcheck for postgres container in docker-compose.yml: Change this row:

    test: [ "CMD", "pg_isready", "-U", "", "-d", "" ]
    

    to this:

    test: [ "CMD", "pg_isready", "-U", "<postgres_user>", "-d", "<postgres_database_name" ]
    
  3. And finally build and run the containers:

    docker compose up -d
    

And simply as that you will have running PostgreSQL, PgBouncer and PgWatch on your server or local machine

About

PostgreSQL and PgBouncer basic setup to quickly deploy your database infrastructure on any server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages