Anyone having the Mautic V5 docker image?
Closed this issue · 4 comments
stevennt commented
Anyone having the Mautic V5 docker image?, or a docker compose config that builds Mautic from source? Thanks.
vinyll commented
5.0.1 stable is out now.
Not being a PHP dev I haven't been able to reproduce a proper environment despite spending hours on it.
Here's my current status where PHP-FPM is not running as I thought:
FROM php:8.2-fpm
LABEL vendor="Mautic"
LABEL maintainer="Wild Open"
# Install PHP extensions
RUN apt-get update && apt-get install --no-install-recommends -y \
cron \
git \
wget \
sudo \
libc-client-dev \
libicu-dev \
libkrb5-dev \
libmcrypt-dev \
libonig-dev \
libpng-dev \
libssl-dev \
libzip-dev \
nodejs \
unzip \
zip \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& rm -rf /var/lib/apt/lists/* \
&& rm /etc/cron.daily/*
RUN curl -L https://npmjs.org/install.sh | sh
RUN docker-php-ext-configure imap --with-imap --with-imap-ssl --with-kerberos \
&& docker-php-ext-configure opcache --enable-opcache \
&& docker-php-ext-install imap intl mbstring mysqli pdo_mysql zip opcache bcmath gd \
&& docker-php-ext-enable imap intl mbstring mysqli pdo_mysql zip opcache bcmath gd
# Define Mautic volume to persist data
VOLUME /var/www/html
# By default enable cron jobs
ENV MAUTIC_RUN_CRON_JOBS true
# Setting an root user for test
ENV MAUTIC_DB_USER root
ENV MAUTIC_DB_NAME mautic
# Setting PHP properties
ENV PHP_INI_DATE_TIMEZONE='UTC' \
PHP_MEMORY_LIMIT=512M \
PHP_MAX_UPLOAD=128M \
PHP_MAX_EXECUTION_TIME=300 \
COMPOSER_ALLOW_SUPERUSER=1
RUN echo 'memory_limit = 131072M' >> /usr/local/etc/php/conf.d/docker-fpm.ini
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
# Install Mautic
RUN git clone https://github.com/mautic/mautic.git /usr/src/mautic
RUN cd /usr/src/mautic \
&& composer update \
&& composer install \
&& chown -R www-data:www-data /usr/src/mautic
# Copy init scripts and custom .htaccess
COPY common/docker-entrypoint.sh /entrypoint.sh
COPY common/makeconfig.php /makeconfig.php
COPY common/makedb.php /makedb.php
COPY common/mautic.crontab /etc/cron.d/mautic
RUN chmod 644 /etc/cron.d/mautic
# Apply necessary permissions
# RUN ["chmod", "+x", "/entrypoint.sh"]
#ENTRYPOINT ["/entrypoint.sh"]
CMD ["php-fpm"]
vinyll commented
It says it should come out in the next days (January 2024): https://forum.mautic.org/t/mautic-5-beyond-expectations-beyond-limits/30459
mollux commented
@stevennt @vinyll please see https://hub.docker.com/r/mautic/mautic, the Mautic 5 images have been released.
Closing this issue as such