Bludit and Docker

Post Reply
User avatar
Site Admin
Posts: 765
Joined: Sat May 16, 2015 2:53 pm

Official Docker container.

Docker hub

Run the container

Code: Select all

docker run --name bludit -p 8000:80 -d bludit/docker:latest
Go to http://localhost:8000 to continue with the installation
Ssr. Bludit
Posts: 10
Joined: Thu Oct 29, 2020 12:12 pm
Location: Vienna

I've run into a slight problem with this image and can't figure out what is causing it.
The container is created just fine, I can access the website, all the content and the admin panel. But I can't save new content. Whenever I hit save it's gone. I suspect it has something todo with volume permissions, but I've already set them correctly to my knowledge.
This is the relevant ouput from docker-compose logs

Code: Select all

bludit    | 2021/01/30 11:54:49 [error] 12#0: *42 FastCGI sent in stderr: "PHP message: PHP Warning:  mkdir(): Permission denied in /usr/share/nginx/html/bl-kernel/helpers/filesystem.class.php on line 56
bludit    | PHP message: [ERROR] [3.13.1] [/admin/new-content] Pages::add | Error occurred when trying to create the directory [/usr/share/nginx/html/bl-content/pages/events]
bludit    | PHP message: [ERROR] [3.13.1] [/admin/new-content] Function createNewPage() | Error occurred when trying to create the page
bludit    | PHP message: [ERROR] [3.13.1] [/admin/new-content] Function createNewPage() | Cleaning database...
bludit    | PHP message: [ERROR] [3.13.1] [/admin/new-content] Function createNewPage() | Cleaning finished" while reading response header from upstream, client:, server: , request: "POST /admin/new-content HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "", referrer: ""
Does anyone have any idea what's going on here?
I've created the container through docker-compose since it needs to run with some other services. I've also mounted bl-themes and bl-plugin volumes through docker-compose since I need to be able to access those directories. Could that have something todo with it?
Thanks for your help!
User avatar
Ssr. Bludit
Posts: 16
Joined: Mon Feb 22, 2021 10:56 am
Location: Berlin

NGINX permission problems?! ... :?

Alternative ...

Code: Select all

version: "3"


    container_name: bludit-apache
    restart: unless-stopped
    user: 1000:1000
    hostname: localhost
      context: docker
      dockerfile: Dockerfile
      - ./www:/var/www/html:rw
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
      - ./docker/php.ini:/usr/local/etc/php/conf.d/zz-custom.ini
      - 8082:80
... Dockerfile in docker sub dir:

Code: Select all

FROM php:8-apache

RUN apt-get update \
 && apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng-dev

RUN docker-php-ext-configure gd
RUN docker-php-ext-install gd

RUN a2enmod rewrite

WORKDIR /var/www/html
- create www directory
- docker-compose up -d
- download and extract Bludit in www dir
- optional: extend your Dockerfile with add/copy www/* for usage without mount
Post Reply