[FATAL] You must run the SQL migrations, the database schema is not up to date: current=v0 expected=v62 #1821
xinmans
started this conversation in
Installation
Replies: 1 comment
-
Set the environment variable You can also look at the v2/contrib/docker-compose/basic.yml Line 13 in 3fc02df |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Docker compose start failure
https://miniflux.app/docs/installation.html#docker
I refer below docs to build docker,but failure start miniflux
cat docker-compose.yml
version: '3.4'
services:
miniflux:
image: miniflux/miniflux:latest
container_name: minilfux
ports:
- "8090:8080"
depends_on:
- db
environment:
- DATABASE_URL=postgres://miniflux:secret@db/miniflux?sslmode=disable
db:
image: postgres:15
container_name: postgres
environment:
- POSTGRES_USER=miniflux
- POSTGRES_PASSWORD=secret
volumes:
- ./pg_db:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "miniflux"]
interval: 10s
start_period: 30s
No chance to run
Remember that you still need to run the database migrations and create the first user:
Run database migrations
docker-compose exec miniflux /usr/bin/miniflux -migrate
Create the first user
docker-compose exec miniflux /usr/bin/miniflux -create-admin
Beta Was this translation helpful? Give feedback.
All reactions