Deploy Laravel with MySQL

Issues information

  • OS: Windows 10
  • databases: mysql 8
  • Programming language and version: PHP 7.4 (Laravel)

Your issue

I’ve followed the official guide “Deploy Laravel with MySQL with Qovery” and my build failed with the error “can’t connect to local mysql server through socket”

What i’ve done:
clone → write .qovery.yml → push → authorize qovery to my repo → deploy

Dockerfile content (if any)
FROM php:7.4-apache-buster
LABEL maintainer=“Arnaud J”

RUN apt-get update && apt-get install -y \
  libfreetype6-dev \
  libjpeg62-turbo-dev \
  libmcrypt-dev \
  libpng-dev \
  zlib1g-dev \
  libxml2-dev \
  libzip-dev \
  libonig-dev \
  unzip \ 
  zip \ 

RUN docker-php-ext-install \
  mbstring \
  pdo \
  pdo_mysql \ 
  opcache \
  && a2enmod rewrite negotiation \
  && service apache2 restart

COPY docker/apache/vhost.conf /etc/apache2/sites-available/000-default.conf

# COPY docker/php/ /etc/php/7.4/fpm # Enable to deploy a custom php.ini

RUN curl -sS | php -- --install-dir=/usr/local/bin --filename=composer --version=1.9.2

COPY --chown=www-data:www-data project/ /var/www/html/

WORKDIR /var/www/html/

RUN composer install --prefer-dist --optimize-autoloader --classmap-authoritative --no-dev --quiet

RUN chown -R www-data:www-data /var/www/html/


COPY docker/docker-php-entrypoint-wrapper /usr/local/bin/

RUN chmod 775 /usr/local/bin/docker-php-entrypoint-wrapper

ENTRYPOINT [ "/usr/local/bin/docker-php-entrypoint-wrapper" ]

Hi @Jonathan_V , welcome, and thanks for asking. Someone from my team will help you to troubleshoot what’s wrong as soon as possible. I keep you posted.

Hello, i have exactly the same problem. :eyes:


It looks like an issue on Digital Ocean side, I’m contacting them.I’ll keep you informed.


1 Like

Digital Ocean informed me it should be ok now :slight_smile:

1 Like

Still failing but with another error :frowning:

Can you please send me in PM your email address you’re using to use Qovery?

Thanks @Jonathan_V , I think when you gave it a try the situation DigitalOcean side, was not completely resolved.

I tried to deploy your app, there is an error now but it’s now on your side. Please let if know if you need assistance again.

1 Like

Dont forget to edit your laravel .env file like below: