Migration gives 504 Gateway Time-out

depending on your platform, you’ll need the php-mysql and php-pdo extension installed

Here is my original dockerfile:

    RUN apt-get update && apt-get install -y git curl unzip wget nano libgmp-dev libzip-dev libmagickwand-dev --no-install-recommends && rm -r /var/lib/apt/lists/
    RUN pecl install imagick; \
    docker-php-ext-enable imagick; \
    docker-php-ext-install gd; \
    docker-php-ext-install zip; \
    docker-php-ext-install bz2; \
    docker-php-ext-install intl; \
    docker-php-ext-install gmp; \
    docker-php-ext-install mysqli; \
    docker-php-ext-install bcmath; \
    docker-php-ext-install pdo_mysql
    RUN mkdir -p /var/www/invoiceninja/
    WORKDIR /var/www/invoiceninja
    ARG version="v5.1.11-release"
    RUN wget -O invoiceninja.zip https://github.com/invoiceninja/invoiceninja/releases/download/${version}/invoiceninja.zip
    RUN unzip invoiceninja.zip && rm invoiceninja.zip
    RUN chmod 755 /var/www/invoiceninja/storage/ -R && chown www-data:www-data /var/www/invoiceninja/ -R
    EXPOSE 80
    CMD ["php", "-S", "[::]:80", "-t", "/var/www/invoiceninja/public"]

I replaced/added with

  • mysql but then it was saying it was missing mysqli
  • pdo but then it was saying “could not find driver”

Maybe you can have a look at my original dockerfile and see if something is missing or wrong ? It’s the same dockerfile I’m using with v4 (just the download url changes)

I would suggest looking at our docker files here:

V4 and V5 docker requirements are completely different, so i would suggest using our V5 dockerfile.

ok, thank you. Will do this later on, when I have some more time. Cheers