Git Product home page Git Product logo

docker-php-nginx-postgres-composer's People

Contributors

devantoine avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-php-nginx-postgres-composer's Issues

PHP container cannot connect to postgres via localhost host but network ip instead

everything is stock per your composer yaml file, in my test script I have

<?php 
    $connection = pg_connect ("host=localhost dbname=dbname user=dbuser password=dbpwd port=5432");
    if($connection) {
       echo 'connected';
    } else {
        echo 'there has been an error connecting';
    } 
?>

however when i do host=172.21.0.4 it connects fine. Care to elaborate on what's going on? Thanks for your help!

composer container does not know about extensions installed in php container

Hi as much as I like your layout, I suspect it can not work properly if some of the dependencies declared in the composer.json require php extensions.

I can install those php extensions in the php container, but the compose script is run by a php binary in the composer container which does not know about extensions installed in php container ...

Do you think this can be patched somehow ?

Service 'php' failed to build

Setting up libxpm-dev:amd64 (1:3.5.12-1) ...
Processing triggers for libc-bin (2.28-10) ...
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
pecl/xdebug requires PHP (version >= 7.2.0, version <= 8.0.99), installed version is 7.1.33
No valid packages found
install failed
The command '/bin/sh -c apt-get update && apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libmcrypt-dev libpng-dev libicu-dev libpq-dev libxpm-dev libvpx-dev && pecl install xdebug && docker-php-ext-enable xdebug && docker-php-ext-install -j$(nproc) mcrypt && docker-php-ext-install -j$(nproc) gd && docker-php-ext-install -j$(nproc) intl && docker-php-ext-install -j$(nproc) zip && docker-php-ext-install -j$(nproc) pgsql && docker-php-ext-install -j$(nproc) pdo_pgsql && docker-php-ext-install -j$(nproc) exif && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-xpm-dir=/usr/lib/x86_64-linux-gnu/ --with-vpx-dir=/usr/lib/x86_64-linux-gnu/' returned a non-zero code: 1
ERROR: Service 'php' failed to build

compoer exited with code 1

Hi there!
I have cloned the project, entered the "docker-compose up" command.
After finishing the process, there is such log:

Creating ineat_php_1 ... done
Creating ineat_composer_1 ... done
Creating ineat_db_1 ... done
Creating ineat_web_1 ... done
Attaching to ineat_php_1, ineat_composer_1, ineat_db_1, ineat_web_1
composer_1 | Composer could not find a composer.json file in /app
composer_1 | To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
ineat_composer_1 exited with code 1
php_1 | [26-Mar-2020 18:21:02] NOTICE: fpm is running, pid 1
php_1 | [26-Mar-2020 18:21:02] NOTICE: ready to handle connections
db_1 | The files belonging to this database system will be owned by user
and a bit more of logs

So the thing is that composer throws this "could not find a composer.json file" error. Is it okay?
Tried this project on 2 different ubuntu PC's. Same thing on each one of them.

During the preparation there were some red lines with errors like:

  • debconf: delaying package configuration, since apt-utils is not installed
  • configure: WARNING: unrecognized options: --with-vpx-dir
    etc. B

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.