This PR contains the following updates: | Package | Update | Change | |---|---|---| | alpine | digest | `a2d49ea` → `28bd5fe` | --- > [!WARNING] > Some dependencies could not be looked up. Check the [Dependency Dashboard](../issues/18710) for more information. Add the preset `:preserveSemverRanges` to your config if you don't want to pin your dependencies. --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://redirect.github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xMzAuMSIsInVwZGF0ZWRJblZlciI6IjQzLjEzMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbImFwcC9kaXNwYXRjaGFyciIsImF1dG9tZXJnZSIsInJlbm92YXRlL2NvbnRhaW5lciIsInR5cGUvZGlnZXN0Il19-->
81 lines
2.7 KiB
YAML
81 lines
2.7 KiB
YAML
# yaml-language-server: $schema=./values.schema.json
|
|
image:
|
|
pullPolicy: IfNotPresent
|
|
repository: docker.io/dispatcharr/dispatcharr
|
|
tag: 0.27.0@sha256:425129020764037869c7d1a2e74ba57ca640cb5d551ef57d869b745b6ea71c7b
|
|
securityContext:
|
|
container:
|
|
readOnlyRootFilesystem: false
|
|
runAsUser: 0
|
|
runAsGroup: 0
|
|
service:
|
|
main:
|
|
ports:
|
|
main:
|
|
protocol: http
|
|
targetPort: 9191
|
|
port: 9191
|
|
workload:
|
|
main:
|
|
podSpec:
|
|
initContainers:
|
|
setup-postgres-dirs:
|
|
enabled: true
|
|
type: init
|
|
name: setup-postgres-dirs
|
|
image: alpine:3.24@sha256:28bd5fe8b56d1bd048e5babf5b10710ebe0bae67db86916198a6eec434943f8b
|
|
command:
|
|
- /bin/sh
|
|
- -c
|
|
- |
|
|
echo "Setting up PostgreSQL directories..."
|
|
|
|
# Create and set permissions for /var/run/postgresql
|
|
mkdir -p /var/run/postgresql
|
|
chown 999:999 /var/run/postgresql
|
|
chmod 2775 /var/run/postgresql
|
|
echo "✓ /var/run/postgresql created (999:999, 2775)"
|
|
|
|
# Fix permissions for /data/db (restored from backup)
|
|
if [ -d /data/db ]; then
|
|
echo "Found existing /data/db, fixing permissions..."
|
|
# Recursively fix ownership of ALL files inside /data/db
|
|
chown -R 999:999 /data/db
|
|
# Set directory permissions to 0700
|
|
chmod 0700 /data/db
|
|
# Fix permissions on all subdirectories and files
|
|
find /data/db -type d -exec chmod 0700 {} \;
|
|
find /data/db -type f -exec chmod 0600 {} \;
|
|
echo "✓ /data/db permissions fixed recursively (999:999, 0700)"
|
|
else
|
|
echo "Creating /data/db..."
|
|
mkdir -p /data/db
|
|
chown 999:999 /data/db
|
|
chmod 0700 /data/db
|
|
echo "✓ /data/db created (999:999, 0700)"
|
|
fi
|
|
|
|
# Verify permissions
|
|
echo "Checking /data/db permissions:"
|
|
ls -la /data/db | head -10
|
|
ls -la /var/run/ | grep postgresql || echo "Warning: postgres dir not found"
|
|
echo "Setup complete."
|
|
containers:
|
|
main:
|
|
env:
|
|
DISPATCHARR_ENV: aio # Set to 'aio' for all-in-one mode with embedded PostgreSQL. Currently, only 'aio' is supported.
|
|
# DISPATCHARR_LOG_LEVEL: info
|
|
persistence:
|
|
data:
|
|
enabled: true
|
|
mountPath: /data
|
|
targetSelector:
|
|
main:
|
|
main:
|
|
mountPath: /data
|
|
setup-postgres-dirs:
|
|
mountPath: /data
|
|
postgres-run:
|
|
enabled: true
|
|
mountPath: /var/run/postgresql
|