diff --git a/docker-compose.yml b/docker-compose.yml index c81fccc3f..27727b51a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,6 @@ services: php: + platform: linux/amd64 build: context: . dockerfile: ./docker/php/Dockerfile @@ -15,7 +16,7 @@ services: - db db: - image: mariadb + image: mariadb:10.11 environment: - MYSQL_ROOT_PASSWORD=junghan5 - MYSQL_DATABASE=thetool @@ -44,6 +45,7 @@ services: - db db-downloader: + platform: linux/amd64 build: context: ./docker/db-downloader dockerfile: Dockerfile diff --git a/docker/php/Dockerfile b/docker/php/Dockerfile index 5d0fe7974..b4585890f 100644 --- a/docker/php/Dockerfile +++ b/docker/php/Dockerfile @@ -1,7 +1,7 @@ -# Use Debian 13 “Trixie” as base image -FROM debian:trixie +# Use Debian 12 “Bookworm” as base image +FROM debian:bookworm -# Install ALL native packages from Debian 13 first +# Install ALL native packages from Debian 12 first RUN apt update && \ apt install -y \ # wkhtmltopdf prerequisites @@ -9,7 +9,7 @@ RUN apt update && \ \ # Apache + PHP + Utils poppler-utils apache2 curl cron unzip \ - php8.4 php8.4-curl php8.4-cli php8.4-mysqli php8.4-gd php8.4-zip php8.4-dom php8.4-mbstring && \ + php8.2 php8.2-curl php8.2-cli php8.2-mysqli php8.2-gd php8.2-zip php8.2-dom php8.2-mbstring && \ \ # Install Composer curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \ @@ -30,7 +30,7 @@ RUN wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkh dpkg --force-all -i wkhtmltox_0.12.6-1.stretch_amd64.deb # Enable PHP in Apache2 and enable rewrite -RUN a2enmod php8.4 \ +RUN a2enmod php8.2 \ && a2enmod rewrite # Set working directory and copy composer.json, then run composer install