From cd5df8b6fd256882f900e6f4b8a0e9e4ecea9087 Mon Sep 17 00:00:00 2001 From: louis Date: Wed, 18 Dec 2024 11:46:42 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=9A=20Adjust=20Docker=20Configuration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 1 + docker-compose.yml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index 5e409c0b..af457b4c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,6 +24,7 @@ FROM docker.io/php:8.2-apache-bookworm RUN apt-get update && \ apt-get install -y libpng-dev libsodium-dev libsqlite3-dev libzip-dev zlib1g-dev zip RUN docker-php-ext-install -j$(nproc) gd opcache pdo_mysql pdo_sqlite sodium zip +RUN echo "memory_limit = 512M" > /usr/local/etc/php/conf.d/memory_limit.ini COPY --from=builder /var/www/html /var/www/html COPY contrib/apache.conf /etc/apache2/sites-available/000-default.conf diff --git a/docker-compose.yml b/docker-compose.yml index 37bd6eb1..cf1411e2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,6 +4,8 @@ services: build: context: . dockerfile: Dockerfile + volumes: + - ./:/var/www/html ports: - 8000:80 networks: @@ -16,6 +18,8 @@ services: MYSQL_PASSWORD: password MYSQL_DATABASE: mail MARIADB_RANDOM_ROOT_PASSWORD: true + ports: + - 3306:3306 volumes: - mariadb:/var/lib/mysql networks: