{"action":"closed","issue":{"url":"https://api.github.com/repos/docker/docker/issues/26571","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/26571/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/26571/comments","events_url":"https://api.github.com/repos/docker/docker/issues/26571/events","html_url":"https://github.com/docker/docker/issues/26571","id":176954444,"number":26571,"title":"Docker-compose dns linking working not","user":{"login":"majuansari","id":4970561,"avatar_url":"https://avatars.githubusercontent.com/u/4970561?v=3","gravatar_id":"","url":"https://api.github.com/users/majuansari","html_url":"https://github.com/majuansari","followers_url":"https://api.github.com/users/majuansari/followers","following_url":"https://api.github.com/users/majuansari/following{/other_user}","gists_url":"https://api.github.com/users/majuansari/gists{/gist_id}","starred_url":"https://api.github.com/users/majuansari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/majuansari/subscriptions","organizations_url":"https://api.github.com/users/majuansari/orgs","repos_url":"https://api.github.com/users/majuansari/repos","events_url":"https://api.github.com/users/majuansari/events{/privacy}","received_events_url":"https://api.github.com/users/majuansari/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/area/networking","name":"area/networking","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-14T16:24:51Z","updated_at":"2016-09-16T14:42:40Z","closed_at":"2016-09-16T14:42:40Z","body":"Hi ,\r\n\r\nPlease see the the following compose file\r\n\r\nversion: '2'\r\n\r\nservices:\r\n\r\n### core Utilities Container ###########################\r\n\r\n    core:\r\n        build:\r\n            context: ./docker/core\r\n        volumes_from:\r\n            - volumes_source\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           - \"22:22\"\r\n        tty: true\r\n\r\n### PHP-FPM Container #######################################\r\n\r\n    php-fpm:\r\n        build:\r\n            context: ./docker/php-fpm/php7\r\n        volumes_from:\r\n            - volumes_source\r\n        expose:\r\n            - \"9000\"\r\n        links:\r\n            - core\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### Apache Server Container ##################################\r\n\r\n    apache2:\r\n        build:\r\n            context: ./docker/apache2\r\n            args:\r\n                - PHP_SOCKET=\"php-fpm:9000\"\r\n                - WEB_DOCUMENT_ROOT=\"/var/www/\"\r\n        volumes_from:\r\n            - volumes_source\r\n        volumes:\r\n            - ./logs/apache2:/var/log/apache2\r\n        ports:\r\n            - \"8080:80\"\r\n            - \"443:443\"\r\n        links:\r\n            - php-fpm\r\n\r\n### MySQL Container #########################################\r\n\r\n    mysql:\r\n        build:\r\n            context: ./docker/mysql/5.6\r\n        volumes_from:\r\n            - volumes_data\r\n        ports:\r\n            - \"3306:3306\"\r\n        environment:\r\n            MYSQL_DATABASE: homestead\r\n            MYSQL_USER: homestead\r\n            MYSQL_PASSWORD: secret\r\n            MYSQL_ROOT_PASSWORD: root\r\n\r\n### Laravel Application Code Container ######################\r\n\r\n    volumes_source:\r\n        image: tianon/true\r\n        volumes:\r\n            - ../:/var/www/laravel\r\n            # Demonstration of how to mount multiple sites\r\n            # - ../../site_a/:/var/www/site_a\r\n            # - ../../site_b/:/var/www/site_b\r\n\r\n### Databases Data Container ################################\r\n\r\n    volumes_data:\r\n        image: tianon/true\r\n        volumes:\r\n            - ./data/mysql:/var/lib/mysql\r\n            - ./data/postgres:/var/lib/postgresql/data\r\n            - ./data/memcached:/var/lib/memcached\r\n            - ./data/redis:/data\r\n            - ./data/neo4j:/var/lib/neo4j/data\r\n            - ./data/mongo:/data/db\r\n            - ./data/aerospike:/opt/aerospike/data\r\n            - ./data/sessions:/sessions\r\n            - ./data/elasticsearch/data:/usr/share/elasticsearch/data\r\n\r\n\r\nNot sure what is wrong with above composer file. But I cannot connect from apache server using \"php-fpm\" key to php-fpm.\r\n\r\nCan any one help me please ?"}}
{"actor":{"display_login":"majuansari"}}