I’ll build a Laravel 8 app. The PHP language level is PHP8. How can I integrate Swoole in my Dockerfile? Actually I try it this way: RUN pecl channel-update https://pecl.php.net/channel.xml && pecl install swoole But if I build the Dockerfile, it always runs into this error: —— > [11/19] RUN pecl channel-update https://pecl.php.net/channel.xml && pecl ..
I am trying to build a docker image for kubernetes cluster using Dockerfile for a Laravel website. I have not much experience with docker, so I searched internet and found a Dockerfile with docker-compose where I can run the website. But I want to use only Dockerfile and keep the Website only in a single ..
I’ve recently started using Laravel Sail and I’ve noticed that it uses the built-in PHP server and not something like Apache or Nginx. So, I assume that this way is not a good way to deploy it on Laravel Vapor. I can publish the Dockerfiles of Sail and modify them to include Nginx but I ..
I’m trying to add sqlpackage to a Laravel Sail Docker. While this is normally not really difficult, Sail makes it kinda hard. I have the following section in my Dockerfile RUN curl -L https://go.microsoft.com/fwlink/?linkid=2157202 -o /usr/local/bin/sqlpackage.zip RUN mkdir /usr/local/bin/sqlpackage RUN unzip /usr/local/bin/sqlpackage.zip -d /usr/local/bin/sqlpackage RUN rm /usr/local/bin/sqlpackage.zip RUN echo "export PATH="$PATH:$HOME/usr/local/bin/sqlpackage"" >> /home/sail/.bashrc RUN chmod ..
I’m trying to dockerize existing Laravel + Vue.js application, however, when trying to access database getting an error: Database hosts array is empty. It looks like that connection fails from PHP to MYSQL (but MySQL image is running and I can connect to it from terminal). Not sure how to proceed with this. It doesn’t ..
i’m struggling a lot with a Laravel application that i want to deploy to azure AKS using azure DevOps the thing is i’m reading a lots of non-accurate tutorials and docs, i didnt found anything related on how to push or deploy a Laravel docker image to azure aks using azure DevOps and it’s frustrating, ..
I have built a docker image for Laravel (i’m using docker for windows) using docker-compose build app command and i’ve pushed it to docker hub successfully the problem is : when i do docker compose -d up i’m getting 3 containers running as expected (nginix + mysql + the app) When i test the image ..
I am quite new to Linux and Docker. It is good that Sail manages everything for me! But I would like to allow the debugging in VSCode. I have added in my windows laravel folder /docker/8.0/php.ini [XDebug] xdebug.remote_enable = 1 xdebug.remote_autostart = 1 xdebug.remote_host = host.docker.internal xdebug.remote_port = 9001 I have added this in my ..
I have a docker container, for which I need to run the following command php /var/www/html/artisan queue:work & It starts a worker process that looks for jobs and executes them. I can run it by doing exec -it when the container is running. But I need to do it using Dockerfile so that when my ..
I allow myself to post a topic in support as I am stuck for a few days on a problem with gitlab’s CI configuration file for a Laravel project My .gitlab-ci.yml file stages: – build – test – deploy variables: MYSQL_ROOT_PASSWORD: "secret" MYSQL_USER: "root" MYSQL_DATABASE: "laravel" DB_HOST: "mysql" cache: paths: – vendor/ – node_modules/ – ..
I have a Docker environment running Laravel and I want to get laravel-websockets working. When I visit here: http://localhost:8000/laravel-websockets I get the following error: Dev tools gives me the following: WebSocket connection to ‘ws://localhost:6001/app/local?protocol=7&client=js&version=4.3.1&flash=false’ failed: Connection closed before receiving a handshake response I’ve got the following docker-compose.yaml: version: "3.8" services: server: build: context: . dockerfile: ..
I Set Up Laravel, Nginx, and MySQL with Docker Compose in order to deploy my laravel application. I want to set up the owner for the folder /var/www and try this in my dockerfile # Copy existing application directory permissions COPY –chown=www-data:www-data . /var/www RUN chmod -R 775 /var/www But that not set up the ..
I need to get nginx and php-fpm started for my container. I am not sure what I am doing wrong but i can only get php-fpm started. Below is my dockerfile with several commented lines that i previously tried and failed. Any help will be greatly appreciated. This is a laravel/php project. dockerfile FROM php:7.2-fpm-alpine ..
I need to get nginx and php-fpm started for my container. I am not sure what I am doing wrong but I can only get php-fpm started. Below is my dockerfile with several commented lines that I previously tried and failed. Any help will be greatly appreciated. This is a laravel/php project. dockerfile FROM php:7.2-fpm-alpine ..
I can’t understand why this is happening. I am trying to create a symlink but it fails. It only works if I ssh into the container after it has been created. When I build my project using Docker I get this error message: Step 11/14 : RUN php artisan storage:link —> Running in bbfd87dcdbf6 Could ..
I try to build a Laravel app and i have an error when i try to build the docker image My docker file: FROM php:7.3-fpm COPY composer.lock composer.json /var/www/ COPY database /var/www/database WORKDIR /var/www RUN apt-get update && apt-get -y install git && apt-get -y install zip RUN php -r "copy(‘https://getcomposer.org/installer’, ‘composer-setup.php’);" && php -r ..
I have an app which uses Vue CLI as a front-end and Laravel as a back-end. Now I am trying to launch my app on a server using docker. My docker skills can only allow me one thing: Vue docker container. But as far as I have to use Laravel as a back-end I have ..
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: [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], ..
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 ..