'Unable to upload images. Ghost CMS in Docker

When upload any images (post, logo and etc.), printing the error "Request was rejected due to server error". Container reloaded per try to upload, without any errors in "docker logs". I am tried different params for chmod and chown, anything don't help me.

My docker-compose file:

blog_ghost:
  image: ghost
  ports:
    - 8989:2368
  depends_on:
    - mariadb
  environment:
    url: https://exaple.site
    database__client: mysql
    database__connection__host: mariadb
    database__connection__user: DB_NAME
    database__connection__password: secure_password
    database__connection__database: USER
  restart: always
  volumes:
    - /storage/blog_ghost:/var/lib/ghost/content/

In error.log nothing, empty file.

screenshot error

Permission in the container

In .log this messages: docker logs

I tried to build the container on the 4.3.3 version of the image. It works fine and the images are uploaded.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source