docker-library / ghost

Docker Official Image packaging for Ghost
https://hub.docker.com/_/ghost
MIT License
720 stars 311 forks source link

Unknown database error #367

Closed max-tet closed 1 year ago

max-tet commented 1 year ago

The most simple docker install throws this error.

docker run --rm -it ghost:alpine

connect ECONNREFUSED 127.0.0.1:3306

"Unknown database error"

Then, the container exits with code 2.

yosifkit commented 1 year ago

Since 5.x, ghost upstream has moved away from sqlite as a supported configuration, so an external database is required.

There is an example docker-compose file on the Docker Hub readme: https://github.com/docker-library/docs/tree/94f25a1ea232fabf717d8871e9d30e691dd06c3a/ghost#-via-docker-stack-deploy-or-docker-compose