Kirby with Docker permission problem


#1

Hello,

I had a site running locally using Docker, and now, some months later, I get a ’ Forbidden - You don’t have permission to access / on this server’. The only change I did was updating Docker itself.

The relevant files are:

docker-compose.yml ->

    version: '2'

    services:
      webserver:
        build: ./docker/webserver
        image: addciel
        ports:
          - "80:80"
          - "443:443"
        volumes:
          - ./public:/var/www/html

Dockerfile ->

FROM php:7.2-apache
RUN apt-get update -y && apt-get install -y \
  libcurl4-openssl-dev \
  libfreetype6-dev \
  libjpeg62-turbo-dev \
  libpng-dev \

&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd \
&& docker-php-ext-install mbstring

RUN a2enmod rewrite
RUN service apache2 restart

Can you spot any mistakes?


#2

I reset Docker via its settings panel and the problem is solved. Nothing to do with the files above.