Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ba3d81cd20 | ||
|
|
0c625d5e71 | ||
|
|
b787d66665 | ||
|
|
081ab67c14 | ||
|
|
61f0d78a93 | ||
|
|
b18d0838b9 | ||
|
|
bb9829883b | ||
|
|
f3a2c3cbbc | ||
|
|
29057e00a2 | ||
|
|
6577443afb |
@@ -1 +1 @@
|
||||
FROM postgres:16.4
|
||||
FROM postgres:17.1
|
||||
|
||||
10
README.md
10
README.md
@@ -1,6 +1,6 @@
|
||||
# dokku postgres [](https://github.com/dokku/dokku-postgres/actions/workflows/ci.yml?query=branch%3Amaster) [](https://webchat.libera.chat/?channels=dokku)
|
||||
|
||||
Official postgres plugin for dokku. Currently defaults to installing [postgres 16.4](https://hub.docker.com/_/postgres/).
|
||||
Official postgres plugin for dokku. Currently defaults to installing [postgres 17.1](https://hub.docker.com/_/postgres/).
|
||||
|
||||
## Requirements
|
||||
|
||||
@@ -103,9 +103,17 @@ dokku postgres:create lollipop
|
||||
Official Postgres "$DOCKER_BIN" image ls does not include postgis extension (amongst others). The following example creates a new postgres service using `postgis/postgis:13-3.1` image, which includes the `postgis` extension.
|
||||
|
||||
```shell
|
||||
# use the appropriate image-version for your use-case
|
||||
dokku postgres:create postgis-database --image "postgis/postgis" --image-version "13-3.1"
|
||||
```
|
||||
|
||||
To use pgvector instead, run the following:
|
||||
|
||||
```shell
|
||||
# use the appropriate image-version for your use-case
|
||||
dokku postgres:create pgvector-database --image "pgvector/pgvector" --image-version "pg17"
|
||||
```
|
||||
|
||||
### print the service information
|
||||
|
||||
```shell
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
Official Postgres "$DOCKER_BIN" image ls does not include postgis extension (amongst others). The following example creates a new postgres service using `postgis/postgis:13-3.1` image, which includes the `postgis` extension.
|
||||
|
||||
```shell
|
||||
# use the appropriate image-version for your use-case
|
||||
dokku postgres:create postgis-database --image "postgis/postgis" --image-version "13-3.1"
|
||||
```
|
||||
|
||||
To use pgvector instead, run the following:
|
||||
|
||||
```shell
|
||||
# use the appropriate image-version for your use-case
|
||||
dokku postgres:create pgvector-database --image "pgvector/pgvector" --image-version "pg17"
|
||||
```
|
||||
|
||||
@@ -18,7 +18,7 @@ service_connect() {
|
||||
local SERVICE_TTY_OPTS
|
||||
has_tty && SERVICE_TTY_OPTS="-t"
|
||||
|
||||
"$DOCKER_BIN" container exec --env=LANG=C.UTF-8 --env=LC_ALL=C.UTF-8 -i $SERVICE_TTY_OPTS "$SERVICE_NAME" psql -h localhost -U postgres "$DATABASE_NAME"
|
||||
"$DOCKER_BIN" container exec --env=LANG=C.UTF-8 --env=LC_ALL=C.UTF-8 -i $SERVICE_TTY_OPTS "$SERVICE_NAME" psql -v ON_ERROR_STOP=1 -h localhost -U postgres "$DATABASE_NAME"
|
||||
}
|
||||
|
||||
service_create() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[plugin]
|
||||
description = "dokku postgres service plugin"
|
||||
version = "1.38.0"
|
||||
version = "1.40.0"
|
||||
[plugin.config]
|
||||
|
||||
Reference in New Issue
Block a user