[bitnami/postgrest] Release 11.2.2-debian-11-r5 (#55136)

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
Bitnami Bot 2024-01-20 04:02:54 +01:00 committed by GitHub
parent e4318591b7
commit fd9ad3931b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 36 additions and 46 deletions

View File

@ -7,10 +7,10 @@ ARG TARGETARCH
LABEL com.vmware.cp.artifact.flavor="sha256:1e1b4657a77f0d47e9220f0c37b9bf7802581b93214fff7d1bd2364c8bf22e8e" \
org.opencontainers.image.base.name="docker.io/bitnami/minideb:bullseye" \
org.opencontainers.image.created="2024-01-13T08:58:00Z" \
org.opencontainers.image.created="2024-01-20T02:25:14Z" \
org.opencontainers.image.description="Application packaged by VMware, Inc" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.ref.name="11.2.2-debian-11-r4" \
org.opencontainers.image.ref.name="11.2.2-debian-11-r5" \
org.opencontainers.image.title="postgrest" \
org.opencontainers.image.vendor="VMware, Inc." \
org.opencontainers.image.version="11.2.2"
@ -41,6 +41,7 @@ RUN apt-get autoremove --purge -y curl && \
apt-get update && apt-get upgrade -y && \
apt-get clean && rm -rf /var/lib/apt/lists /var/cache/apt/archives
RUN useradd -r -u 1001 -g root postgrest
RUN find / -perm /6000 -type f -exec chmod a-s {} \; || true
ENV APP_VERSION="11.2.2" \
BITNAMI_APP_NAME="postgrest" \

View File

@ -13,13 +13,6 @@ Trademarks: This software listing is packaged by Bitnami. The respective tradema
docker run -it --name postgrest bitnami/postgrest
```
### Docker Compose
```console
curl -sSL https://raw.githubusercontent.com/bitnami/containers/main/bitnami/postgrest/docker-compose.yml > docker-compose.yml
docker-compose up -d
```
## Why use Bitnami Images?
* Bitnami closely tracks upstream source changes and promptly publishes new versions of this image using our automated systems.
@ -73,20 +66,12 @@ Bitnami provides up-to-date versions of PostgREST, including security patches, s
docker pull bitnami/postgrest:latest
```
or if you're using Docker Compose, update the value of the image property to `bitnami/postgrest:latest`.
#### Step 2: Remove the currently running container
```console
docker rm -v postgrest
```
or using Docker Compose:
```console
docker-compose rm -v postgrest
```
#### Step 3: Run the new image
Re-create your container from the new image.
@ -95,40 +80,38 @@ Re-create your container from the new image.
docker run --name postgrest bitnami/postgrest:latest
```
or using Docker Compose:
```console
docker-compose up postgrest
```
## Configuration
### Environment variables
| Name | Description | Default Value | Can be set |
|-----------------------------|----------------------------------------------------------------------|---------------------------------------------------------------------------------------------|------------|
| `$POSTGREST_BASE_DIR` | postgrest installation directory. | `${BITNAMI_ROOT_DIR}/postgrest` | |
| `$POSTGREST_LOGS_DIR` | Directory where postgrest logs are stored. | `${POSTGREST_BASE_DIR}/logs` | |
| `$POSTGREST_LOG_FILE` | Directory where postgrest logs are stored. | `${POSTGREST_LOGS_DIR}/postgrest.log` | |
| `$POSTGREST_BIN_DIR` | postgrest directory for binary executables. | `${POSTGREST_BASE_DIR}/bin` | |
| `$POSTGREST_TMP_DIR` | Directory where postgrest temporary files are stored. | `${POSTGREST_BASE_DIR}/tmp` | |
| `$POSTGREST_PID_FILE` | Path to the PID file for postgrest. | `${POSTGREST_TMP_DIR}/postgrest.pid` | |
| `$POSTGREST_EXTRA_ENV_FILE` | File to store extra environment variables for the postgrest service. | `${POSTGREST_BASE_DIR}/.env` | |
| `$DB_HOST` | Database host | `localhost` | &check; |
| `$DB_PORT` | Database port number | `5432` | &check; |
| `$DB_USER` | Database user username | `postgres` | &check; |
| `$DB_PASSWORD` | Database user password | | &check; |
| `$DB_NAME` | Database name | `postgres` | &check; |
| `$DB_SSL` | Database SSL connection enabled | `disable` | &check; |
| `$PGRST_JWT_SECRET` | Postgrest JWT secret | | &check; |
| `$PGRST_DB_ANON_ROLE` | Postgrest anon role | `anon` | &check; |
| `$PGRST_DB_SCHEMA` | Postgrest database schema | `public,storage` | &check; |
| `$PGRST_DB_USE_LEGACY_GUCS` | Postgrest use legacy GUCS | `false` | &check; |
| `$PGRST_SERVER_PORT` | Postgrest server port | `3000` | &check; |
| `$PGRST_DB_URI` | Postgres DB URI | `postgresql://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}?sslmode=${DB_SSL}` | |
| `$POSTGREST_DAEMON_USER` | postgrest system user. | `supabase` | |
| `$POSTGREST_DAEMON_GROUP` | postgrest system group. | `supabase` | |
#### Customizable environment variables
| Name | Description | Default Value |
|----------------------------|---------------------------------|------------------|
| `DB_HOST` | Database host | `localhost` |
| `DB_PORT` | Database port number | `5432` |
| `DB_USER` | Database user username | `postgres` |
| `DB_NAME` | Database name | `postgres` |
| `DB_SSL` | Database SSL connection enabled | `disable` |
| `PGRST_DB_ANON_ROLE` | Postgrest anon role | `anon` |
| `PGRST_DB_SCHEMA` | Postgrest database schema | `public,storage` |
| `PGRST_DB_USE_LEGACY_GUCS` | Postgrest use legacy GUCS | `false` |
| `PGRST_SERVER_PORT` | Postgrest server port | `3000` |
#### Read-only environment variables
| Name | Description | Value |
|----------------------------|----------------------------------------------------------------------|---------------------------------------------------------------------------------------------|
| `POSTGREST_BASE_DIR` | postgrest installation directory. | `${BITNAMI_ROOT_DIR}/postgrest` |
| `POSTGREST_LOGS_DIR` | Directory where postgrest logs are stored. | `${POSTGREST_BASE_DIR}/logs` |
| `POSTGREST_LOG_FILE` | Directory where postgrest logs are stored. | `${POSTGREST_LOGS_DIR}/postgrest.log` |
| `POSTGREST_BIN_DIR` | postgrest directory for binary executables. | `${POSTGREST_BASE_DIR}/bin` |
| `POSTGREST_TMP_DIR` | Directory where postgrest temporary files are stored. | `${POSTGREST_BASE_DIR}/tmp` |
| `POSTGREST_PID_FILE` | Path to the PID file for postgrest. | `${POSTGREST_TMP_DIR}/postgrest.pid` |
| `POSTGREST_EXTRA_ENV_FILE` | File to store extra environment variables for the postgrest service. | `${POSTGREST_BASE_DIR}/.env` |
| `PGRST_DB_URI` | Postgres DB URI | `postgresql://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}?sslmode=${DB_SSL}` |
| `POSTGREST_DAEMON_USER` | postgrest system user. | `supabase` |
| `POSTGREST_DAEMON_GROUP` | postgrest system group. | `supabase` |
### Running commands
@ -140,6 +123,12 @@ docker run --rm --name postgrest bitnami/postgrest:latest --help
Check the [official PostgREST documentation](https://postgrest.org/en/stable//configuration.html) for more information about how to use PostgREST.
## Notable Changes
### Starting January 16, 2024
* The `docker-compose.yaml` file has been removed, as it was solely intended for internal testing purposes.
## Contributing
We'd love for you to contribute to this Docker image. You can request new features by creating an [issue](https://github.com/bitnami/containers/issues) or submitting a [pull request](https://github.com/bitnami/containers/pulls) with your contribution.