diff --git a/docker-compose.yml b/docker-compose.yml index 3044ce1..b60367e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,8 +1,8 @@ services: playground: build: - context: . - dockerfile: docker/playground/Dockerfile + context: ./docker/playground + dockerfile: Dockerfile ports: - "${WEB_PORT:-8080}:80" volumes: diff --git a/docker/playground/Dockerfile b/docker/playground/Dockerfile index 864156f..ecf6833 100644 --- a/docker/playground/Dockerfile +++ b/docker/playground/Dockerfile @@ -4,3 +4,10 @@ apt-get install -y libonig-dev RUN docker-php-ext-install mysqli pdo_mysql mbstring + +# Enable Apache headers module +RUN a2enmod headers + +# Add custom Apache configuration for UTF-8 charset +COPY apache-charset.conf /etc/apache2/conf-available/charset.conf +RUN a2enconf charset diff --git a/docker/playground/apache-charset.conf b/docker/playground/apache-charset.conf new file mode 100644 index 0000000..28ca6f8 --- /dev/null +++ b/docker/playground/apache-charset.conf @@ -0,0 +1 @@ +AddDefaultCharset UTF-8