Category : docker

Hello i have a docker container running which has my laravel app, i’m using my database from my local machine. I dont have extra container for my DB. But unfortunately i cannot connect my docker container with my mysql DB. Here is the docker file FROM ubuntu:bionic RUN apt-get update && apt-get -y upgrade && ..

Read more

When using the following connection script: <?php ini_set(‘default_socket_timeout’, 120); $soap_connection_info = array( ‘soap_uri’ => ‘urn:AC’, ‘soap_host’ => ‘127.0.0.1’, ‘soap_port’ => ‘7878’, ‘account_name’ => ‘acore’, ‘account_password’ => ‘password’ ); function RemoteCommandWithSOAP($username, $password, $COMMAND) { global $soap_connection_info; $result = ”; try { $conn = new SoapClient(NULL, array( ‘location’ => ‘http://’ . $soap_connection_info[‘soap_host’] . ‘:’ . $soap_connection_info[‘soap_port’] . ..

Read more

I’m creating an app using docker and laravel. At the beginning everything was fine, I ran the migrations successfully. But at some point an error occured while migrating and trying one of the routes on Postman: IlluminateDatabaseQueryException SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from information_schema.tables where table_schema = users and table_name ..

Read more

I am trying upgrade this docker file from 7.3 to 7.4 but getting executor failed error. Detailed error: executor failed running [/bin/sh -c docker-php-ext-install bcmath ctype dom gd hash iconv intl mbstring mysqli opcache pdo_mysql simplexml sockets soap sodium xsl zip ;]: exit code: 2 FROM php:7.4-fpm as base ENV COMPOSER_HOME=/tmp/composer ENV APCU_VERSION=5.1.18 RUN apt-get ..

Read more

I have two services. Radish and PHP. How to make php wait for the launch of redis and write about it.I tried using healthcheck-s but apparently I am not setting it up correctly. Docker-compose.yml version: ‘2’ services: php: build: context: docker/web dockerfile: Dockerfile-php-7.0 container_name: php ports: – "8280:80" links: – redis:redis redis: build: docker/cache container_name: ..

Read more

docker-compose.yml version: "3" networks: laravel: services: nginx: image: nginx:stable-alpine container_name: nginx ports: – "8088:80" volumes: – ./src:/usr/share/nginx/html – ./site.conf:/etc/nginx/conf.d/site.conf depends_on: – php – mysql networks: – laravel mysql: image: mysql:5.7.35 container_name: mysql restart: unless-stopped tty: true ports: – "4306:3306" volumes: – ./mysql:/var/lib/mysql environment: MYSQL_DATABASE: boilerplatelaravel MYSQL_USER: root MYSQL_ROOT_PASSWORD: Tobi12345678 networks: – laravel php: build: context: ..

Read more

I’m building a Docker image with Alpine, php7.2-fpm and Composer. The problem happens while trying to install Composer, which uses https to download the installer via php. I added the repository to be able to install php7.2 (which is used to install composer) and its packages: RUN wget -O /etc/apk/keys/phpearth.rsa.pub https://repos.php.earth/alpine/phpearth.rsa.pub && echo "https://repos.php.earth/alpine/v3.7" >> ..

Read more