{"action":"opened","issue":{"url":"https://api.github.com/repos/laradock/laradock/issues/464","repository_url":"https://api.github.com/repos/laradock/laradock","labels_url":"https://api.github.com/repos/laradock/laradock/issues/464/labels{/name}","comments_url":"https://api.github.com/repos/laradock/laradock/issues/464/comments","events_url":"https://api.github.com/repos/laradock/laradock/issues/464/events","html_url":"https://github.com/laradock/laradock/issues/464","id":193159650,"number":464,"title":"Cannot connect postgres?","user":{"login":"phuocnt0612","id":16434499,"avatar_url":"https://avatars.githubusercontent.com/u/16434499?v=3","gravatar_id":"","url":"https://api.github.com/users/phuocnt0612","html_url":"https://github.com/phuocnt0612","followers_url":"https://api.github.com/users/phuocnt0612/followers","following_url":"https://api.github.com/users/phuocnt0612/following{/other_user}","gists_url":"https://api.github.com/users/phuocnt0612/gists{/gist_id}","starred_url":"https://api.github.com/users/phuocnt0612/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phuocnt0612/subscriptions","organizations_url":"https://api.github.com/users/phuocnt0612/orgs","repos_url":"https://api.github.com/users/phuocnt0612/repos","events_url":"https://api.github.com/users/phuocnt0612/events{/privacy}","received_events_url":"https://api.github.com/users/phuocnt0612/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-02T16:33:18Z","updated_at":"2016-12-02T16:33:18Z","closed_at":null,"body":"I got this message and dont know how to fix :'(. Someone help me please\r\n\r\n> Fatal error: Call to undefined function pg_connect()\r\n\r\nMy docker-compose.yml:\r\n\r\n``` version: '2'\r\n\r\nservices:\r\n\r\n### Applications Code Container #############################\r\n\r\n    applications:\r\n        image: tianon/true\r\n        volumes:\r\n            - ../:/var/www\r\n#            - ../sample/:/var/www/sample\r\n\r\n### Workspace Utilities Container ###########################\r\n\r\n    workspace:\r\n        build:\r\n            context: ./workspace\r\n            args:\r\n                - INSTALL_XDEBUG=false\r\n                - INSTALL_MONGO=false\r\n                - INSTALL_NODE=false\r\n                - INSTALL_YARN=false\r\n                - INSTALL_DRUSH=false\r\n                - INSTALL_AEROSPIKE_EXTENSION=false\r\n                - COMPOSER_GLOBAL_INSTALL=false\r\n                - INSTALL_WORKSPACE_SSH=false\r\n                - PUID=1000\r\n                - PGID=1000\r\n                - NODE_VERSION=stable\r\n                - TZ=UTC\r\n        volumes_from:\r\n            - applications\r\n        extra_hosts:\r\n            # IMPORTANT: Replace with your Docker Host IP (will be appended to /etc/hosts)\r\n            - \"dockerhost:10.0.75.1\"\r\n        ports:\r\n           - \"2222:22\"\r\n        tty: true\r\n\r\n### PHP-FPM Container #######################################\r\n\r\n    php-fpm:\r\n        build:\r\n            context: ./php-fpm\r\n            args:\r\n                - INSTALL_XDEBUG=false\r\n                - INSTALL_MONGO=false\r\n                - INSTALL_ZIP_ARCHIVE=false\r\n                - INSTALL_MEMCACHED=false\r\n                - INSTALL_OPCACHE=false\r\n                - INSTALL_AEROSPIKE_EXTENSION=false\r\n                - CODEIGNITER=false\r\n            dockerfile: Dockerfile-56\r\n        volumes_from:\r\n            - applications\r\n        expose:\r\n            - \"9000\"\r\n        links:\r\n            - workspace\r\n        extra_hosts:\r\n            # IMPORTANT: Replace with your Docker Host IP (will be appended to /etc/hosts)\r\n            - \"dockerhost:10.0.75.1\"\r\n        environment:\r\n            # IMPORTANT: Set the Remote Interpreter entry matching name to `laravel`\r\n            - PHP_IDE_CONFIG=serverName=laravel\r\n\r\n### Nginx Server Container ##################################\r\n\r\n    nginx:\r\n        build:\r\n            context: ./nginx\r\n            args:\r\n                - PHP_UPSTREAM=php-fpm\r\n        volumes_from:\r\n            - applications\r\n        volumes:\r\n            - ./logs/nginx/:/var/log/nginx\r\n            - ./nginx/sites/:/etc/nginx/sites-available\r\n        ports:\r\n            - \"80:80\"\r\n            - \"443:443\"\r\n        links:\r\n            - php-fpm\r\n\r\n### PostgreSQL Container ####################################\r\n\r\n    postgres:\r\n        build: ./postgres\r\n        volumes:\r\n            - postgres:/var/lib/postgresql/data\r\n        ports:\r\n            - \"5432:5432\"\r\n        environment:\r\n            POSTGRES_DB: postgres\r\n            POSTGRES_USER: postgres\r\n            POSTGRES_PASSWORD: postgres\r\n\r\n### Volumes Setup ###########################################\r\n\r\nvolumes:\r\n    postgres:\r\n        driver: \"local\"\r\n    sessions:    ## nothing is connected to this (- ./data/sessions:/sessions)\r\n        driver: \"local\"\r\n```\r\n"}}
{"actor":{"display_login":"phuocnt0612"}}