{"id":18534437,"url":"https://github.com/nanobox-io/nanobox-docker-postgresql","last_synced_at":"2025-07-27T09:34:43.509Z","repository":{"id":34457594,"uuid":"38393399","full_name":"nanobox-io/nanobox-docker-postgresql","owner":"nanobox-io","description":"PostgreSQL Image for Using PostgreSQL on Nanobox","archived":false,"fork":false,"pushed_at":"2019-11-21T19:42:47.000Z","size":138,"stargazers_count":4,"open_issues_count":6,"forks_count":5,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-24T08:41:22.919Z","etag":null,"topics":["developer-tools","devops","docker","docker-image","nanobox","postgres","postgresql"],"latest_commit_sha":null,"homepage":"https://nanobox.io","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/nanobox-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-01T20:27:43.000Z","updated_at":"2022-03-22T18:05:31.000Z","dependencies_parsed_at":"2022-08-23T01:30:27.807Z","dependency_job_id":null,"html_url":"https://github.com/nanobox-io/nanobox-docker-postgresql","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/nanobox-io%2Fnanobox-docker-postgresql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanobox-io%2Fnanobox-docker-postgresql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanobox-io%2Fnanobox-docker-postgresql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanobox-io%2Fnanobox-docker-postgresql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nanobox-io","download_url":"https://codeload.github.com/nanobox-io/nanobox-docker-postgresql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248058002,"owners_count":21040675,"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":["developer-tools","devops","docker","docker-image","nanobox","postgres","postgresql"],"created_at":"2024-11-06T19:15:45.988Z","updated_at":"2025-04-09T15:31:41.182Z","avatar_url":"https://github.com/nanobox-io.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostgreSQL [![Build Status Image](https://travis-ci.org/nanobox-io/nanobox-docker-postgresql.svg)](https://travis-ci.org/nanobox-io/nanobox-docker-postgresql)\n\nThis is an PostgreSQL Docker image used to launch a PostgreSQL service on Nanobox. To use this image, add a data component to your `boxfile.yml` with the `nanobox/postgresql` image specified:\n\n```yaml\ndata.db:\n  image: nanobox/postgresql\n```\n\n## PostgreSQL Configuration Options\nPostgreSQL components are configured in your `boxfile.yml`. All available configuration options are outlined below.\n\n### Version\nWhen configuring a PostgreSQL service in your boxfile.yml, you can specify which version to load into your database service. The following version(s) are available:\n\n- 9.3\n- 9.4\n- 9.5\n- 9.6\n\n**Note:** PostgreSQL versions cannot be changed after the service is created. To use a different version, you'll have to create a new PostgreSQL service.\n\n#### version\n```yaml\n# default setting\ndata.db:\n  image: nanobox/postgresql\n  config:\n    version: 9.4\n```\n\n### Custom Users/Permissions/Databases\nYou can create custom users with custom permissions as well as additional databases.\n\n```yaml\ndata.postgresql:\n  image: nanobox/postgresql:9.5\n  config:\n    users:\n    - username: customuser\n      meta:\n        privileges:\n        - privilege: ALL PRIVILEGES\n          type: DATABASE\n          'on': gonano\n          grant: true\n        - privilege: ALL PRIVILEGES\n          type: DATABASE\n          'on': customdb\n          grant: true\n        roles:\n        - SUPERUSER\n```\n\nFor each custom user specified, Nanobox will generate an environment variable for the user's password using the following pattern:\n\n```yaml\n# Pattern\nCOMPONENT_ID_USERNAME_PASS\n\n# Examples\n\n## Custom user config 1\ndata.postgres:\n  config:\n    users:\n      - username: customuser\n\n## Generated password evar 1\nDATA_POSTGRES_CUSTOMUSER_PASS\n\n## Custom user config 2\ndata.db:\n  config:\n    users:\n      - username: dbuser\n\n## Generated password evar 2\nDATA_DB_DBUSER_PASS\n```\n\n## Request PostgreSQL Boxfile Configs\nOne of the many benefits of using PostgreSQL is that it doesn't require much configuration. The project itself is finely tuned. However we know there are settings that users may want to tweak. If there's a setting you'd like to modify that is typically handled in the postresql.conf, please let us know by creating a [new issue on this project](https://github.com/nanobox-io/nanobox-docker-postgresql/issues/new).\n\n## Help \u0026 Support\nThis is a PostgreSQL Docker image provided by [Nanobox](http://nanobox.io). If you need help with this image, you can reach out to us in the [Nanobox Slack channel](http://nanoboxio.slack.com). If you are running into an issue with the image, feel free to [create a new issue on this project](https://github.com/nanobox-io/nanobox-docker-postgresql/issues/new).\n\n## License\nMozilla Public License, version 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanobox-io%2Fnanobox-docker-postgresql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnanobox-io%2Fnanobox-docker-postgresql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanobox-io%2Fnanobox-docker-postgresql/lists"}