Category : docker

I’m running Laravel on docker. The web app works fine till I get to this line const OAUTH_TOKEN = ‘/oauth/token’; return $this->post(self::OAUTH_TOKEN, $this->getBody()); Using Postman I get "cURL error 7: Failed to connect to localhost port 8080: Connection refused How to allow windows not to block connection to or from docker to save the token? ..

Read more

I am deploying a Laravel application using the Docker platform on AWS Elastic Beanstalk. One of the steps in my Dockerfile is bundling assets using Laravel mix by running npm run production as seen below. # Dockerfile … RUN echo "${ALPINE_MIRROR}/edge/main" >> /etc/apk/repositories && apk add –no-cache nodejs nodejs-npm –repository="http://dl-cdn.alpinelinux.org/alpine/edge/community" && npm install && npm ..

Read more

I try to build API inside docker container that connectiong with external(not in container) MSSQL server 2015. I got error when trying to run php artisan passport:install on docker bash. IlluminateDatabaseQueryException : SQLSTATE[08001]: [Microsoft][ODBC Driver 17 for SQL Server]TCP Provider: Error code 0x2746 (SQL: insert into [oauth_clients] ([user_id], [name], [secret], [redirect], [personal_access_client], [password_client], [revoked], [updated_at], ..

Read more

I’m in the process of configuring my laravel application to run within a docker container; I’ve successfully configured the laravel side on top of the php7.4-apache docker image, and I’ve separately configured the Mariadb10.3 image for the db. I’ve troubleshot a number of connection issues, and have finally gotten it down to the following error: ..

Read more

I’m trying to connect to my running Docker SQL database on my machine through Sequel Pro, unfortunately appears that connecting to it is failing/isn’t possible through this method? My docker-compose.yml file is: version: "3.7" services: app: build: args: user: user uid: 1000 context: ./ dockerfile: Dockerfile image: brand container_name: brand-app restart: unless-stopped working_dir: /var/www/ volumes: ..

Read more

My target is to use this git repo for Laravel with xdebug for php-fpm: https://github.com/aschmelyun/docker-compose-laravel When using this repo i run: docker-compose up -d –build site docker-compose up Here is the docker file from above repo: FROM php:7.4-fpm-alpine ADD ./php/www.conf /usr/local/etc/php-fpm.d/www.conf RUN addgroup -g 1000 laravel && adduser -G laravel -g laravel -s /bin/sh -D ..

Read more

I’m getting this title error. I just try to adjust PUID and PGID like this. Dockerfile FROM php:7-fpm RUN apt-get update RUN apt-get install -y libmcrypt-dev mariadb-client mcrypt git curl gnupg RUN curl -sL https://deb.nodesource.com/setup_8.x | bash RUN apt-get install -y nodejs RUN docker-php-ext-install pdo_mysql RUN apt-get install -y vim RUN curl -sS https://getcomposer.org/installer | ..

Read more

I want to start work with docker. I had started nginx, laravel, and mysql containers. But I have problem, when I want to visit my page I get: No application encryption key has been specified In my env file in cointainer I have APP_KEY=base64:isqaS8uLDmiO47hZLTTKmheHM13uBkeA6wTWG1nF5E4= generated by command php artisan key:generate from whitch i get Application ..

Read more

I’ve followed this tutorial docker tutorial and it is an awesome tutorial by the way. Installed an 8 Laravel version and when I tried to run PHP artisan migrate, this problem came out: ParseError syntax error, unexpected ‘)’ at vendor/laravel/framework/src/Illuminate/Bus/BusServiceProvider.php:51 47▕ return new DatabaseBatchRepository( 48▕ $app->make(BatchFactory::class), 49▕ $app->make(‘db’)->connection(config(‘queue.batching.database’)), 50▕ config(‘queue.batching.table’, ‘job_batches’), ➜ 51▕ ); 52▕ ..

Read more

I’m trying to develop a login page in Laravel using LDAP. When I click on the login button, I’ve an error : ldap_bind(): Unable to bind to server: Invalid credentials I know it’s configuration but I don’t found the answer… My .env LDAP Part : LDAP_LOGGING=true LDAP_CONNECTION=default LDAP_HOST=ldap LDAP_PORT=389 LDAP_BASE_DN="dc=test,dc=fr" LDAP_SSL=false LDAP_TLS=false My docker-compose Ldap ..

Read more

I’m using Laravel 8 and testing with PHPUnit 9 using mySQL. This works perfectly on my local machine (Windows 10 box with mySQL locally installed). But when I try to use Gitlab CI, I just get PDOException: SQLSTATE[HY000] [2002] Connection refused My gitlab.ci file is as below: image: lorisleiva/laravel-docker:latest ############################## # BUILD COMPONENTS ############################## services: ..

Read more

Docker version : 19.03.12 Postgres version : latest PHP : 7.4 Project in Laravel When I start docker-compose build, there is an error when it’s try to execute composer dump-autoload –classmap-authoritative –no-dev; Docker-compose : version: ‘3.4’ services: visuall-php: build: context: ./visuall dockerfile: Dockerfile-php volumes: – ./visuall:/var/www/html networks: – visuall visuall-nginx: build: context: ./visuall dockerfile: Dockerfile-nginx ..

Read more