skip to Main Content

Connect to Mysql database from another docker application

I have 2 Laravel applications running in docker environment. The first application docker-compose file (which called mobile app) version: '3.8' networks: laravel: services: nginx: build: context: . dockerfile: dockers/nginx/Dockerfile container_name: mobile-server-nginx ports: - "8188:80" volumes: - ./:/var/www/ depends_on: - php…

VIEW QUESTION

Docker & PHP 8 FPM & Laravel Setup

I have this Dockerfile for my app: FROM php:8.0.5-fpm-alpine WORKDIR /var/www ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ RUN apk update && apk add build-base freetype-dev libjpeg-turbo-dev libpng-dev libzip-dev zip jpegoptim optipng pngquant gifsicle vim unzip git curl RUN docker-php-ext-install pdo_mysql mbstring zip exif…

VIEW QUESTION
Back To Top
Search