129 lines
2.9 KiB
YAML
129 lines
2.9 KiB
YAML
|
image:
|
||
|
repository: tccr.io/truecharts/plausible
|
||
|
pullPolicy: IfNotPresent
|
||
|
tag: v2.0.0@sha256:1ef59e863cfdcddc308d4ec743091bc8eda4f62e16b269cf4d778c89b8c02a68
|
||
|
|
||
|
# Plausible self-hosting documentation
|
||
|
# https://plausible.io/docs/self-hosting
|
||
|
|
||
|
plausible:
|
||
|
# Server
|
||
|
BASE_URL: http://localhost
|
||
|
DISABLE_REGISTRATION: "true"
|
||
|
LOG_FAILED_LOGIN_ATTEMPTS: false
|
||
|
|
||
|
# Database
|
||
|
CLICKHOUSE_FLUSH_INTERVAL_MS: 5000
|
||
|
CLICKHOUSE_MAX_BUFFER_SIZE: 10000
|
||
|
|
||
|
# Mailer/SMTP Setup
|
||
|
MAILER_EMAIL: hello@plausible.local
|
||
|
MAILER_NAME: ""
|
||
|
SMTP_HOST_ADDR: localhost
|
||
|
SMTP_HOST_PORT: 25
|
||
|
SMTP_USER_NAME: ""
|
||
|
SMTP_USER_PWD: ""
|
||
|
SMTP_HOST_SSL_ENABLED: false
|
||
|
SMTP_RETRIES: 2
|
||
|
MAILER_ADAPTER: Bamboo.SMTPAdapter
|
||
|
POSTMARK_API_KEY: ""
|
||
|
MAILGUN_API_KEY: ""
|
||
|
MAILGUN_DOMAIN: ""
|
||
|
MAILGUN_BASE_URI: ""
|
||
|
MANDRILL_API_KEY: ""
|
||
|
SENDGRID_API_KEY: ""
|
||
|
|
||
|
# IP Geolocation
|
||
|
# todo(investigate where automatic updates are stored and configure storage accordingly)
|
||
|
MAXMIND_LICENSE_KEY: ""
|
||
|
MAXMIND_EDITION: GeoLite2-City
|
||
|
|
||
|
# Google Search Integration
|
||
|
GOOGLE_CLIENT_ID: ""
|
||
|
GOOGLE_CLIENT_SECRET: ""
|
||
|
|
||
|
# Logging
|
||
|
LOG_LEVEL: warn
|
||
|
|
||
|
workload:
|
||
|
main:
|
||
|
podSpec:
|
||
|
initContainers:
|
||
|
db-create:
|
||
|
type: install
|
||
|
enabled: true
|
||
|
imageSelector: image
|
||
|
securityContext:
|
||
|
runAsUser: 1000
|
||
|
runAsGroup: 1000
|
||
|
readOnlyRootFilesystem: false
|
||
|
envFrom:
|
||
|
- configMapRef:
|
||
|
name: plausible-config
|
||
|
- secretRef:
|
||
|
name: plausible-secret
|
||
|
command: sh
|
||
|
args:
|
||
|
- -c
|
||
|
- /entrypoint.sh db createdb && /entrypoint.sh db migrate
|
||
|
db-migrate:
|
||
|
type: upgrade
|
||
|
enabled: true
|
||
|
imageSelector: image
|
||
|
securityContext:
|
||
|
runAsUser: 1000
|
||
|
runAsGroup: 1000
|
||
|
readOnlyRootFilesystem: false
|
||
|
envFrom:
|
||
|
- configMapRef:
|
||
|
name: plausible-config
|
||
|
- secretRef:
|
||
|
name: plausible-secret
|
||
|
command: sh
|
||
|
args:
|
||
|
- -c
|
||
|
- /entrypoint.sh db migrate
|
||
|
containers:
|
||
|
main:
|
||
|
securityContext:
|
||
|
runAsUser: 1000
|
||
|
runAsGroup: 1000
|
||
|
readOnlyRootFilesystem: false
|
||
|
envFrom:
|
||
|
- configMapRef:
|
||
|
name: plausible-config
|
||
|
- secretRef:
|
||
|
name: plausible-secret
|
||
|
probes:
|
||
|
liveness:
|
||
|
type: http
|
||
|
path: /api/health
|
||
|
readiness:
|
||
|
type: http
|
||
|
path: /api/health
|
||
|
startup:
|
||
|
type: http
|
||
|
path: /api/health
|
||
|
|
||
|
service:
|
||
|
main:
|
||
|
ports:
|
||
|
main:
|
||
|
targetPort: 8000
|
||
|
port: 10277
|
||
|
|
||
|
cnpg:
|
||
|
main:
|
||
|
enabled: true
|
||
|
user: plausible
|
||
|
database: plausible
|
||
|
|
||
|
clickhouse:
|
||
|
enabled: true
|
||
|
clickhouseUsername: plausible
|
||
|
clickhouseDatabase: plausible
|
||
|
|
||
|
portal:
|
||
|
open:
|
||
|
enabled: true
|