Category : docker

I am facing a problem when I am trying to connect to mysql using docker. My docker-compose file version: ‘2’ services: app: build: context: ./docker/app dockerfile: Dockerfile image: ebdaa-m.test.com/app volumes: – .:/var/www/html ports: – "80:80" networks: – sdnet node: build: context: ./docker/node dockerfile: Dockerfile image: ebdaa-m.test.com/node volumes: – .:/var/www/html networks: – sdnet mysql: image: mariadb:10.5 ..

Read more

I’ve gone through the steps in the laravel.com/docs/8.x/installation documentation. Everything is downloaded and setup. I then innput: curl -s https://laravel.build/example-app | bash into Ubuntu. All went well and it loads and finishes. I then put entered: cd example-app ./vendor/bin/sail up However, this fails with the following error: ⠿ laravel.test Error 3.0s [+] Building 51.4s (9/16) ..

Read more

So I managed to set the docker compose file on both projects to read/write in the same db by configuring docker-compose.yml files like this. project1 # For more information: https://laravel.com/docs/sail version: ‘3’ services: laravel.test: build: context: ./vendor/laravel/sail/runtimes/8.0 dockerfile: Dockerfile args: WWWGROUP: ‘${WWWGROUP}’ image: sail-8.0/app ports: – ‘${APP_PORT:-80}:80’ environment: WWWUSER: ‘${WWWUSER}’ LARAVEL_SAIL: 1 XDEBUG_MODE: ‘${SAIL_XDEBUG_MODE:-off}’ XDEBUG_CONFIG: ..

Read more

This is using docker. It works when using wsl2 but when using hyper-v I’m getting the issue. I’m trying to run mix watch — –watch-options-poll=3000 or mix –production but every time I’m running it I’m getting the following issue: [webpack-cli] [Error: EEXIST: file already exists, open ‘/var/www/html/public/website/images/e-side.png’] { errno: -17, code: ‘EEXIST’, syscall: ‘open’, path: ..

Read more

I have setup ES and kibana on EC2 AWS (Only for testing purpose) and made it public so that it can be accessed from laptop to test few things… sudo docker pull docker.elastic.co/elasticsearch/elasticsearch:7.15.0 sudo docker run -d -p 9200:9200 -p 9300:9300 –name es-service -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.15.0 sudo docker pull docker.elastic.co/kibana/kibana:7.15.0 sudo docker run -d –link ..

Read more

I’m having a hard time connecting to the development webserver inside the container (from safari on my host machine). Since I am using network_mode: host I did not expect there to be any errors. In my .env APP_URL is set to localhost.com – I added an entry to /etc/hosts accordingly. Ping localhost.com referes to 127.0.0.1 ..

Read more

This is my backend service (docker-compose.yml). backend: build: context: ./backend dockerfile: ../Dockerfile.laravel command: php artisan serve –host 0.0.0.0 volumes: – ./backend:/code The content of Dockerfile.laravel is: FROM php:8.0.3-alpine3.13 ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ RUN chmod +x /usr/local/bin/install-php-extensions && sync && install-php-extensions @composer bcmath WORKDIR /code I’m starting everything with docker-compose up -d –build –force-recreate –remove-orphans. On which ..

Read more

This is my first time working with docker. I have a laravel websocket site (php + laravel + postgresql) that needs to be put into a container. If I just execute commands (no docker): php artisan serve php artisan websockets: serve then it works successfully: Websockets dashboard http://127.0.0.1:8000/laravel-websockets Can send POST message to http://127.0.0.1:8000/telephonyCall for ..

Read more

I have been using this pre-made docker-compose-laravel Setup for my website https://github.com/aschmelyun/docker-compose-laravel. After installing my local dev environment and adding the logic i tried deploying the project via DigitalOcean’s Droplet service. When running the command to install composer docker-compose run –rm composer install i get the following common error message /var/www/html/vendor/doctrine does not exist and ..

Read more

I’m using PhpStorm on Mac. I’m trying to debug a Laravel application inside the Sail container on the remote Ubuntu server. Error that I can see from Xdebug inside Sail container is: [17] Log opened at 2021-09-26 21:24:59.590599 [17] [Step Debug] INFO: Checking remote connect back address. [17] [Step Debug] INFO: Checking header ‘HTTP_X_FORWARDED_FOR’. [17] ..

Read more