{"id":19427271,"url":"https://github.com/theasp/docker-postgrest-sqitch","last_synced_at":"2025-04-24T17:31:25.046Z","repository":{"id":81613263,"uuid":"105563143","full_name":"theasp/docker-postgrest-sqitch","owner":"theasp","description":"Docker container with Postgrest and Sqitch","archived":false,"fork":false,"pushed_at":"2018-03-02T16:21:32.000Z","size":10,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T08:51:26.166Z","etag":null,"topics":["docker","postgres","postgresql","postgresql-database","postgrest","sqitch"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/theasp.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":"2017-10-02T17:24:41.000Z","updated_at":"2022-01-06T10:43:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"1806ba84-034d-4ef1-b493-af920614eb5d","html_url":"https://github.com/theasp/docker-postgrest-sqitch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theasp%2Fdocker-postgrest-sqitch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theasp%2Fdocker-postgrest-sqitch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theasp%2Fdocker-postgrest-sqitch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theasp%2Fdocker-postgrest-sqitch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theasp","download_url":"https://codeload.github.com/theasp/docker-postgrest-sqitch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250674321,"owners_count":21469198,"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","postgres","postgresql","postgresql-database","postgrest","sqitch"],"created_at":"2024-11-10T14:11:07.146Z","updated_at":"2025-04-24T17:31:25.036Z","avatar_url":"https://github.com/theasp.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-postgrest-sqitch\n\nRun [PostgREST](https://postgrest.com/) after deploying a schema using [Sqitch](http://sqitch.org/), based on the [offical PostgREST image](https://hub.docker.com/r/postgrest/postgrest/).\n\nAdd your Sqitch configuration to `/sqitch` by building a new image, or by mounting a volume.  The schema will be deployed to `PGRST_DB_URI`.\n\n# Environment Variables\n\n- `PGRST_DB_URI` (required) - Database URI\n- `SQITCH_DEPLOY` (default `deploy`) - The sqitch command to use to deploy.  You can use this to pass arguments as well, for example `deploy --verify`.\n- `SQITCH_VERIFY` (default `verify`) - The sqitch command to use to verify, or skip on empty string.\n- `SQITCH_REQUIRED` (default `auto`) - If set to `true`, postgrest will not be started if there is a problem with sqitch.  If set to `auto` then sqitch will be skipped if there is no `sqitch.plan` available.\n\n# Example `Dockerfile`\n\n```dockerfile\nFROM theasp/postgrest-sqitch\nADD ./ /sqitch\n```\n\n# Example `docker-compose.yml`\n```yaml\n---\nversion: '3'\n\nservices:\n  postgrest:\n    image: mydb-postgrest\n    build: .\n    ports:\n      - \"3000:3000\"\n    restart: always\n    environment:\n      PGRST_DB_URI: postgres://mydb:mydb@postgres:5432/mydb\n      PGRST_DB_SCHEMA: public\n      PGRST_DB_ANON_ROLE: anonymous\n      PGRST_SERVER_PROXY_URI: http://localhost:3000\n      SQITCH_DEPLOY: deploy --verify\n\n  postgres:\n    image: postgres\n    restart: always\n    environment:\n      POSTGRES_DB: mydb\n      POSTGRES_USER: mydb\n      POSTGRES_PASSWORD: mydb\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheasp%2Fdocker-postgrest-sqitch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheasp%2Fdocker-postgrest-sqitch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheasp%2Fdocker-postgrest-sqitch/lists"}