2022-07-12 17:17:35 +00:00
|
|
|
image:
|
|
|
|
repository: plausible/analytics
|
|
|
|
pullPolicy: IfNotPresent
|
2022-12-06 15:13:57 +00:00
|
|
|
tag: v1.5.1@sha256:3fbdcfac56ffa79e778e9e4bc1ca8c4dca0d7deb330ed5694f59eaa1125cc0a8
|
2022-07-12 17:17:35 +00:00
|
|
|
|
|
|
|
# Plausible self-hosting documentation
|
|
|
|
# https://plausible.io/docs/self-hosting
|
|
|
|
|
|
|
|
plausible:
|
|
|
|
# Server
|
|
|
|
BASE_URL: http://localhost
|
|
|
|
DISABLE_AUTH: false
|
|
|
|
DISABLE_REGISTRATION: false
|
|
|
|
|
|
|
|
# Default User
|
|
|
|
ADMIN_USER_NAME: admin
|
|
|
|
ADMIN_USER_EMAIL: admin@example.com
|
|
|
|
ADMIN_USER_PWD: P@ssw0rd
|
|
|
|
|
|
|
|
# Database
|
|
|
|
CLICKHOUSE_FLUSH_INTERVAL_MS: 5000
|
|
|
|
CLICKHOUSE_MAX_BUFFER_SIZE: 10000
|
|
|
|
|
|
|
|
# Mailer/SMTP Setup
|
|
|
|
MAILER_EMAIL: hello@plausible.local
|
|
|
|
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: ""
|
|
|
|
|
|
|
|
# Google Search Integration
|
|
|
|
GOOGLE_CLIENT_ID: ""
|
|
|
|
GOOGLE_CLIENT_SECRET: ""
|
|
|
|
|
|
|
|
# Logging
|
|
|
|
LOG_LEVEL: warn
|
|
|
|
|
|
|
|
securityContext:
|
|
|
|
readOnlyRootFilesystem: false
|
|
|
|
|
|
|
|
podSecurityContext:
|
|
|
|
runAsUser: 1000
|
|
|
|
runAsGroup: 1000
|
|
|
|
|
|
|
|
envFrom:
|
|
|
|
- configMapRef:
|
|
|
|
name: '{{ include "tc.common.names.fullname" . }}-env-config'
|
|
|
|
- secretRef:
|
|
|
|
name: '{{ include "tc.common.names.fullname" . }}-env-secret'
|
|
|
|
|
|
|
|
installContainers:
|
|
|
|
plausible-install:
|
|
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
|
|
|
envFrom:
|
|
|
|
- configMapRef:
|
|
|
|
name: '{{ include "tc.common.names.fullname" . }}-env-config'
|
|
|
|
- secretRef:
|
|
|
|
name: '{{ include "tc.common.names.fullname" . }}-env-secret'
|
|
|
|
command: [sh]
|
|
|
|
args:
|
|
|
|
- -c
|
|
|
|
- >-
|
|
|
|
/entrypoint.sh db createdb &&
|
|
|
|
/entrypoint.sh db migrate &&
|
|
|
|
/entrypoint.sh db init-admin
|
|
|
|
|
|
|
|
upgradeContainers:
|
|
|
|
plausible-upgrade:
|
|
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
|
|
|
envFrom:
|
|
|
|
- configMapRef:
|
|
|
|
name: '{{ include "tc.common.names.fullname" . }}-env-config'
|
|
|
|
- secretRef:
|
|
|
|
name: '{{ include "tc.common.names.fullname" . }}-env-secret'
|
|
|
|
command: [sh]
|
|
|
|
args:
|
|
|
|
- -c
|
|
|
|
- /entrypoint.sh db migrate
|
|
|
|
|
|
|
|
service:
|
|
|
|
main:
|
|
|
|
ports:
|
|
|
|
main:
|
|
|
|
targetPort: 8000
|
|
|
|
protocol: HTTP
|
|
|
|
port: 10277
|
|
|
|
|
|
|
|
probes:
|
|
|
|
liveness:
|
|
|
|
type: HTTP
|
|
|
|
path: /api/health
|
|
|
|
readiness:
|
|
|
|
type: HTTP
|
|
|
|
path: /api/health
|
|
|
|
startup:
|
|
|
|
type: HTTP
|
|
|
|
path: /api/health
|
|
|
|
|
|
|
|
postgresql:
|
|
|
|
enabled: true
|
|
|
|
existingSecret: dbcreds
|
|
|
|
postgresqlUsername: plausible
|
|
|
|
postgresqlDatabase: plausible
|
|
|
|
|
|
|
|
clickhouse:
|
|
|
|
enabled: true
|
|
|
|
existingSecret: clickhousecreds
|
|
|
|
clickhouseUsername: plausible
|
|
|
|
clickhouseDatabase: plausible
|
2022-08-08 21:25:02 +00:00
|
|
|
|
|
|
|
portal:
|
|
|
|
enabled: true
|