[bitnami/gotrue] Release 1.0.1-debian-11-r221 (#54998)

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
Bitnami Bot
2024-01-19 22:19:51 +01:00
committed by GitHub
parent d56547b506
commit 0b8ff10f61
3 changed files with 58 additions and 31 deletions
+3 -2
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-10T11:30:00Z" \
org.opencontainers.image.created="2024-01-19T19:49:30Z" \
org.opencontainers.image.description="Application packaged by VMware, Inc" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.ref.name="1.0.1-debian-11-r220" \
org.opencontainers.image.ref.name="1.0.1-debian-11-r221" \
org.opencontainers.image.title="gotrue" \
org.opencontainers.image.vendor="VMware, Inc." \
org.opencontainers.image.version="1.0.1"
@@ -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 gotrue
RUN find / -perm /6000 -type f -exec chmod a-s {} \; || true
ENV APP_VERSION="1.0.1" \
BITNAMI_APP_NAME="gotrue" \
@@ -1,8 +0,0 @@
# Copyright VMware, Inc.
# SPDX-License-Identifier: APACHE-2.0
version: '2'
services:
gotrue:
image: docker.io/bitnami/gotrue:1
+55 -21
View File
@@ -13,13 +13,6 @@ Trademarks: This software listing is packaged by Bitnami. The respective tradema
docker run -it --name gotrue bitnami/gotrue
```
### Docker Compose
```console
curl -sSL https://raw.githubusercontent.com/bitnami/containers/main/bitnami/gotrue/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 GoTrue, including security patches, soon
docker pull bitnami/gotrue:latest
```
or if you're using Docker Compose, update the value of the image property to `bitnami/gotrue:latest`.
#### Step 2: Remove the currently running container
```console
docker rm -v gotrue
```
or using Docker Compose:
```console
docker-compose rm -v gotrue
```
#### Step 3: Run the new image
Re-create your container from the new image.
@@ -95,14 +80,57 @@ Re-create your container from the new image.
docker run --name gotrue bitnami/gotrue:latest
```
or using Docker Compose:
```console
docker-compose up gotrue
```
## Configuration
### Environment variables
#### Customizable environment variables
| Name | Description | Default Value |
|---------------------------------------|---------------------------------|--------------------------------------------------------------------------------------------------------------|
| `DB_HOST` | Database host | `localhost` |
| `DB_PORT` | Database port number | `5432` |
| `DB_NAME` | Database name | `postgres` |
| `DB_USER` | Database user username | `postgres` |
| `DB_SSL` | Database SSL connection enabled | `disable` |
| `GOTRUE_DB_DATABASE_URL` | Database URL | `postgresql://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}?search_path=auth&sslmode=${DB_SSL}` |
| `GOTRUE_URI_ALLOW_LIST` | | `*` |
| `GOTRUE_SITE_URL` | | `http://localhost:80` |
| `GOTRUE_API_PORT` | | `9999` |
| `GOTRUE_API_HOST` | | `0.0.0.0` |
| `GOTRUE_DISABLE_SIGNUP` | | `false` |
| `GOTRUE_DB_DRIVER` | | `postgres` |
| `GOTRUE_JWT_DEFAULT_GROUP_NAME` | | `authenticated` |
| `GOTRUE_JWT_ADMIN_ROLES` | | `service_role` |
| `GOTRUE_JWT_AUD` | | `authenticated` |
| `GOTRUE_JWT_EXP` | | `3600` |
| `GOTRUE_EXTERNAL_EMAIL_ENABLED` | | `true` |
| `GOTRUE_MAILER_AUTOCONFIRM` | | `true` |
| `GOTRUE_SMTP_ADMIN_EMAIL` | | `your-mail@example.com` |
| `GOTRUE_SMTP_HOST` | | `smtp.exmaple.com` |
| `GOTRUE_SMTP_PORT` | | `587` |
| `GOTRUE_SMTP_SENDER_NAME` | | `your-mail@example.com` |
| `GOTRUE_EXTERNAL_PHONE_ENABLED` | | `false` |
| `GOTRUE_SMS_AUTOCONFIRM` | | `false` |
| `GOTRUE_MAILER_URLPATHS_INVITE` | | `http://localhost:80/auth/v1/verify` |
| `GOTRUE_MAILER_URLPATHS_CONFIRMATION` | | `http://localhost:80/auth/v1/verify` |
| `GOTRUE_MAILER_URLPATHS_RECOVERY` | | `http://localhost:80/auth/v1/verify` |
| `GOTRUE_MAILER_URLPATHS_EMAIL_CHANGE` | | `http://localhost:80/auth/v1/verify` |
#### Read-only environment variables
| Name | Description | Value |
|-------------------------|-------------------------------------------------------------------|---------------------------------|
| `GOTRUE_BASE_DIR` | gotrue installation directory. | `${BITNAMI_ROOT_DIR}/gotrue` |
| `GOTRUE_LOGS_DIR` | Directory where gotrue logs are stored. | `${GOTRUE_BASE_DIR}/logs` |
| `GOTRUE_LOG_FILE` | Directory where gotrue logs are stored. | `${GOTRUE_LOGS_DIR}/gotrue.log` |
| `GOTRUE_BIN_DIR` | gotrue directory for binary executables. | `${GOTRUE_BASE_DIR}/bin` |
| `GOTRUE_TMP_DIR` | Directory where gotrue temporary files are stored. | `${GOTRUE_BASE_DIR}/tmp` |
| `GOTRUE_PID_FILE` | Path to the PID file for gotrue. | `${GOTRUE_TMP_DIR}/gotrue.pid` |
| `GOTRUE_EXTRA_ENV_FILE` | File to store extra environment variables for the gotrue service. | `${GOTRUE_BASE_DIR}/.env` |
| `GOTRUE_DAEMON_USER` | postgrest system user. | `supabase` |
| `GOTRUE_DAEMON_GROUP` | postgrest system group. | `supabase` |
### Running commands
To run commands inside this container you can use `docker run`, for example to execute `gotrue --help` you can follow the example below:
@@ -113,6 +141,12 @@ docker run --rm --name gotrue bitnami/gotrue:latest --help
Check the [official GoTrue documentation](https://github.com/netlify/gotrue) for more information about how to use GoTrue.
## 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.