{"id":22305713,"url":"https://github.com/muratgozel/postgresql-pgbackrest","last_synced_at":"2026-05-14T22:39:44.611Z","repository":{"id":98551516,"uuid":"404316044","full_name":"muratgozel/postgresql-pgbackrest","owner":"muratgozel","description":"Docker image for PostgreSQL with pgBackRest backup/restore tool.","archived":false,"fork":false,"pushed_at":"2021-09-27T02:22:51.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T21:34:42.969Z","etag":null,"topics":["docker","dockerfile","pgbackrest","postgresql"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/muratgozel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-08T11:08:55.000Z","updated_at":"2023-07-12T14:19:00.000Z","dependencies_parsed_at":"2023-05-29T10:09:35.600Z","dependency_job_id":null,"html_url":"https://github.com/muratgozel/postgresql-pgbackrest","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muratgozel%2Fpostgresql-pgbackrest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muratgozel%2Fpostgresql-pgbackrest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muratgozel%2Fpostgresql-pgbackrest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muratgozel%2Fpostgresql-pgbackrest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muratgozel","download_url":"https://codeload.github.com/muratgozel/postgresql-pgbackrest/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245568584,"owners_count":20636803,"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","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","dockerfile","pgbackrest","postgresql"],"created_at":"2024-12-03T19:12:52.521Z","updated_at":"2025-11-02T17:01:59.838Z","avatar_url":"https://github.com/muratgozel.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# postgresql-pgbackrest\nA docker file that installs postgresql along with pgbackrest. Image size is ~340MB\n\n## Usage\nA pgbackrest.conf file is required as you can find a sample of it inside the pgbackrest directory. Refer to the [pgbackrest documentation](https://pgbackrest.org/configuration.html) for configuration options.\n\nThis is a docker image and available on Github Packages. Just pull it. Sample docker-compose file:\n```yaml\nversion: \"3.9\"\n\nnetworks:\n  testnet:\n    driver: bridge\n\nvolumes:\n  pgbackrest_logs:\n  postgresql_data:\n\nservices:\n  postgresql:\n    container_name: postgres01\n    image: ghcr.io/muratgozel/postgresql-pgbackrest:latest\n    build:\n      context: ./postgresql\n    ports:\n      - \"127.0.0.1:5432:5432\"\n    volumes:\n      - './somedir/pgbackrest:/etc/pgbackrest'\n      - 'pgbackrest_logs:/var/log/pgbackrest'\n      - 'postgresql_data:/usr/local/pgsql/data'\n    networks:\n      - testnet\n    extra_hosts:\n      - \"host.docker.internal:host-gateway\"\n    restart: unless-stopped\n```\nIf you want store pgbackrest backups on the host machine add a volume:\n```yml\n- 'pgbackrest_data:/var/lib/pgbackrest'\n```\n\nCreate a volume under data directory and execute some sql scripts inside of it.\n```sh\ndocker exec postgres01 su-exec postgres psql -h 127.0.0.1 -U postgres -d [DBNAME] -f /data/schema.sql\n```\n\n---\n\nVersion management of this repository done by [releaser](https://github.com/muratgozel/node-releaser) 🚀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuratgozel%2Fpostgresql-pgbackrest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuratgozel%2Fpostgresql-pgbackrest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuratgozel%2Fpostgresql-pgbackrest/lists"}