{"id":19310991,"url":"https://github.com/a0s/postgres-remote-initdb","last_synced_at":"2026-05-06T00:05:44.275Z","repository":{"id":146415295,"uuid":"114402115","full_name":"a0s/postgres-remote-initdb","owner":"a0s","description":"Run Postgres container with initial data fetched from remote url","archived":false,"fork":false,"pushed_at":"2019-07-12T12:47:44.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-17T00:03:22.208Z","etag":null,"topics":["docker","postgres"],"latest_commit_sha":null,"homepage":"https://github.com/a0s/postgres-remote-initdb","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/a0s.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-15T18:55:49.000Z","updated_at":"2019-07-12T12:47:46.000Z","dependencies_parsed_at":"2023-04-05T06:03:28.596Z","dependency_job_id":null,"html_url":"https://github.com/a0s/postgres-remote-initdb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/a0s/postgres-remote-initdb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a0s%2Fpostgres-remote-initdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a0s%2Fpostgres-remote-initdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a0s%2Fpostgres-remote-initdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a0s%2Fpostgres-remote-initdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a0s","download_url":"https://codeload.github.com/a0s/postgres-remote-initdb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a0s%2Fpostgres-remote-initdb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32672686,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","postgres"],"created_at":"2024-11-10T00:27:17.248Z","updated_at":"2026-05-06T00:05:44.259Z","avatar_url":"https://github.com/a0s.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# postgres-remote-initdb\n\nRun Postgres container with initial data fetched from remote url. \nThis is fork of the official [postgres:alpine](https://hub.docker.com/_/postgres).\n\n## Usage\n\n```bash\ndocker build -t postgres-remote-initdb .\ndocker run --rm -it -p 5432:5432  \\\n    -e SRC_URL=\"http://sql.service.consul/dump\" \\\n    -e ON_ERROR_STOP=0 \\\n    -e POSTGRES_PASSWORD=aaa \\\n    -e POSTGRES_DB=aaa \\\n    -e POSTGRES_USER=aaa \\\n    -e PGDATA=/var/lib/postgresql/data/pgdata \\\n    -v postgres_data:/var/lib/postgresql/data/pgdata \\\n    postgres-remote-initdb\n```\n\nVariables:\n\n- `SRC_URL` - URI of server that returns sql dump\n- `ON_ERROR_STOP` - psql's ON_ERROR_STOP variable, default is 0\n- `POSTGRES_PASSWORD` - same as in official image\n- `POSTGRES_DB` - same as in official image\n- `POSTGRES_USER` - same as in official image\n- `PGDATA` - same as in official image\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa0s%2Fpostgres-remote-initdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa0s%2Fpostgres-remote-initdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa0s%2Fpostgres-remote-initdb/lists"}