miniflux-init-db
is a simple init container for Miniflux that creates the database, user and extensions for Miniflux.
Motivation: Miniflux will not (by design) create the database, user and extensions. miniflux-init-db
does this, enabling to deploy Miniflux fully automatic to Kubernetes.
Please find container images on docker hub.
# ...
initContainers:
- name: miniflux-init-db
image: bwolf/miniflux-init-db:latest
env:
# values omitted for readability
- name: DB_POSTGRES_HOST
- name: DB_POSTGRES_PASSWORD
- name: MINIFLUX_DB_NAME
- name: MINIFLUX_DB_USERNAME
- name: MINIFLUX_DB_PASSWORD
- name: init-miniflux
image: miniflux
command: ['sh', '-c', '/usr/bin/miniflux -migrate && /usr/bin/miniflux -create-admin']
env:
- name: DATABASE_URL
- name: ADMIN_USERNAME
- name: ADMIN_PASSWORD
containers:
- name: miniflux
image: miniflux
# ...