{"id":21887340,"url":"https://github.com/sskender/postgres-pgadmin-docker","last_synced_at":"2026-04-10T00:49:54.187Z","repository":{"id":62839640,"uuid":"205460104","full_name":"sskender/postgres-pgadmin-docker","owner":"sskender","description":"docker-compose for painless setup of postgresql and pgadmin panel","archived":false,"fork":false,"pushed_at":"2020-01-15T14:47:38.000Z","size":38,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-05T23:33:02.412Z","etag":null,"topics":["docker","docker-compose","pgadmin","postgres","postgresql","sql"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sskender.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-30T21:38:45.000Z","updated_at":"2022-11-07T16:56:46.000Z","dependencies_parsed_at":"2022-11-07T18:00:59.976Z","dependency_job_id":null,"html_url":"https://github.com/sskender/postgres-pgadmin-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sskender/postgres-pgadmin-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sskender%2Fpostgres-pgadmin-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sskender%2Fpostgres-pgadmin-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sskender%2Fpostgres-pgadmin-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sskender%2Fpostgres-pgadmin-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sskender","download_url":"https://codeload.github.com/sskender/postgres-pgadmin-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sskender%2Fpostgres-pgadmin-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274932272,"owners_count":25376125,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-13T02:00:10.085Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-compose","pgadmin","postgres","postgresql","sql"],"created_at":"2024-11-28T11:09:23.675Z","updated_at":"2025-12-30T21:24:48.814Z","avatar_url":"https://github.com/sskender.png","language":"Shell","readme":"# PostgreSQL and pgAdmin in Docker\n\n## What is this\n\nA docker compose file for painless setup of postgresql and pgadmin panel. It can be used both for testing purposes and a light production environment. Run docker compose and navigate to [localhost:8080](http://localhost:8080) in your browser. Thats it!\n\n## How to use this\n\n#### Login\n\nFirst edit default login credentials. Change email and password combo for [pgadmin](pgadmin.env) and user and password combo for [postgres](postgres.env). If you don't care about this you can leave the default values.\n\n#### Restoring databases\n\nIf you already have sql script or previous database dump that you want this database to populate with, simply copy it to [restore](postgres/restore/) folder. Supported files are .sh, .sql and .sql.gz. Restore folder comes with one default table. If you don't want it in your database just delete the mock_person.sql file.\n\n#### Backup\n\nPostgres image comes shipped with backup script [pgbackup.sh](postgres/pgbackup.sh). Script creates backup of each present database and saves it to /opt/backups folder.\nTo run the script execute:\n```bash\ndocker-compose exec postgres /opt/./pgbackup.sh\n```\n\n#### Production\n\nSystem settings are changed to match common production server specifications, optimized for machines with 2 CPU cores and 4 GB of RAM running on SSD storage. Also, a new user called *sampleuser* is created with password *samplepassword*. In addition, *samledb* database is created. Its security policy is configured so that it can be interacted with only by *sampleuser*. Feel free to play with [this file](postgres/initdb.sh) for your machine.\n\n#### Volumes\n\nThe following volumes are created:\n - db : stores postgres data\n - bkpdb : stores backups created by backup script\n - pg : pgadmin data\n\n#### Running\n\n```bash\ndocker-compose up -d    # start\ndocker-compose down     # stop\n```\n\nOpen browser and navigate to [localhost:8080](http://localhost:8080). Default values for pgadmin login are *postgres@example.com* and *strongpassword*. When adding a new server use *postgres* as host, default port is *5432*. Login credentials are *postgres* and *strongpassword*. If you changed these values, use those instead.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsskender%2Fpostgres-pgadmin-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsskender%2Fpostgres-pgadmin-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsskender%2Fpostgres-pgadmin-docker/lists"}