Update rendered example
This commit is contained in:
parent
5f9681e7d5
commit
c4955bcd44
|
@ -1,4 +1,4 @@
|
|||
FROM danielberteaud/alpine:24.2-1
|
||||
FROM danielberteaud/alpine:24.3-1
|
||||
MAINTAINER Daniel Berteaud <dbd@ehtrace.com>
|
||||
|
||||
ARG MINIFLUX_VERSION=2.1.0
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
set -euo pipefail
|
||||
|
||||
vault write /database/roles/miniflux \
|
||||
vault write database/roles/miniflux \
|
||||
db_name="postgres" \
|
||||
creation_statements="CREATE ROLE \"{{name}}\" WITH LOGIN PASSWORD '{{password}}' VALID UNTIL '{{expiration}}'; \
|
||||
GRANT \"miniflux\" TO \"{{name}}\"; \
|
||||
|
|
|
@ -90,7 +90,7 @@ job "miniflux" {
|
|||
user = 1053
|
||||
|
||||
config {
|
||||
image = "danielberteaud/wait-for:24.2-1"
|
||||
image = "danielberteaud/wait-for:24.3-1"
|
||||
readonly_rootfs = true
|
||||
pids_limit = 20
|
||||
}
|
||||
|
@ -139,7 +139,7 @@ job "miniflux" {
|
|||
|
||||
template {
|
||||
data = <<_EOT
|
||||
DATABASE_URL=postgresql://{{ with secret "/database/creds/miniflux" }}{{ .Data.username }}{{ end }}:{{ with secret "/database/creds/miniflux" }}{{ urlquery .Data.password }}{{ end }}@127.0.0.1:5432/miniflux?sslmode=disable
|
||||
DATABASE_URL=postgresql://{{ with secret "database/creds/miniflux" }}{{ .Data.username }}{{ end }}:{{ with secret "database/creds/miniflux" }}{{ urlquery .Data.password }}{{ end }}@127.0.0.1:5432/miniflux?sslmode=disable
|
||||
_EOT
|
||||
destination = "secrets/.db.env"
|
||||
perms = 400
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
path "/kv/data/service/miniflux" {
|
||||
path "kv/data/service/miniflux" {
|
||||
capabilities = ["read"]
|
||||
}
|
||||
path "/database/creds/miniflux" {
|
||||
path "database/creds/miniflux" {
|
||||
capabilities = ["read"]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue