{"action":"created","issue":{"url":"https://api.github.com/repos/phpdocker-io/phpdocker.io/issues/134","repository_url":"https://api.github.com/repos/phpdocker-io/phpdocker.io","labels_url":"https://api.github.com/repos/phpdocker-io/phpdocker.io/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/phpdocker-io/phpdocker.io/issues/134/comments","events_url":"https://api.github.com/repos/phpdocker-io/phpdocker.io/issues/134/events","html_url":"https://github.com/phpdocker-io/phpdocker.io/issues/134","id":267120026,"number":134,"title":"Mailhog error","user":{"login":"wiisoft","id":11736558,"avatar_url":"https://avatars1.githubusercontent.com/u/11736558?v=4","gravatar_id":"","url":"https://api.github.com/users/wiisoft","html_url":"https://github.com/wiisoft","followers_url":"https://api.github.com/users/wiisoft/followers","following_url":"https://api.github.com/users/wiisoft/following{/other_user}","gists_url":"https://api.github.com/users/wiisoft/gists{/gist_id}","starred_url":"https://api.github.com/users/wiisoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiisoft/subscriptions","organizations_url":"https://api.github.com/users/wiisoft/orgs","repos_url":"https://api.github.com/users/wiisoft/repos","events_url":"https://api.github.com/users/wiisoft/events{/privacy}","received_events_url":"https://api.github.com/users/wiisoft/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-20T09:43:27Z","updated_at":"2017-10-20T09:47:48Z","closed_at":null,"author_association":"NONE","body":"Hello!  I'm using this docker-compose\r\n \r\n\r\n    mailhog:\r\n      image: mailhog/mailhog:latest\r\n      container_name: toplfe-dev-mailhog\r\n      ports:\r\n        - \"1026:8025\"\r\n\r\n    redis:\r\n      image: redis:alpine\r\n      container_name: toplfe-dev-redis\r\n \r\n    webserver:\r\n      image: nginx:alpine\r\n      container_name: toplfe-dev-webserver\r\n      working_dir: /application\r\n      volumes:\r\n          - .:/application\r\n          - ./phpdocker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf\r\n      ports:\r\n       - \"1025:80\"\r\n\r\n    php-fpm:\r\n      build: phpdocker/php-fpm\r\n      container_name: toplfe-dev-php-fpm\r\n      working_dir: /application\r\n      volumes:\r\n        - .:/application\r\n        - ./phpdocker/php-fpm/php-ini-overrides.ini:/etc/php/7.1/fpm/conf.d/99-overrides.ini\r\n        - ./phpdocker/php-fpm/php-ini-overrides.ini:/etc/php/7.1/cli/conf.d/99-overrides.ini\r\n\r\n    adminer:\r\n      image: adminer\r\n      container_name: toplfe-dev-adminer\r\n      restart: always\r\n      ports:\r\n        - \"1024:8080\"\r\n \r\nThen i try to use mail function in my app get  this error\r\n`root@2e4f8b24662c:/application# php -r \"mail('caffeinated@example.com', 'My Subject', 'asdas');\"\r\nerror sending mail\r\n2017/10/20 09:31:52 dial tcp 172.18.0.3:1026: getsockopt: connection refused\r\n`\r\n\r\nDocker version 17.05.0-ce, build 89658be\r\ndocker-compose version 1.16.1, build 6d1ac21"},"comment":{"url":"https://api.github.com/repos/phpdocker-io/phpdocker.io/issues/comments/338160012","html_url":"https://github.com/phpdocker-io/phpdocker.io/issues/134#issuecomment-338160012","issue_url":"https://api.github.com/repos/phpdocker-io/phpdocker.io/issues/134","id":338160012,"user":{"login":"luispabon","id":6388823,"avatar_url":"https://avatars2.githubusercontent.com/u/6388823?v=4","gravatar_id":"","url":"https://api.github.com/users/luispabon","html_url":"https://github.com/luispabon","followers_url":"https://api.github.com/users/luispabon/followers","following_url":"https://api.github.com/users/luispabon/following{/other_user}","gists_url":"https://api.github.com/users/luispabon/gists{/gist_id}","starred_url":"https://api.github.com/users/luispabon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luispabon/subscriptions","organizations_url":"https://api.github.com/users/luispabon/orgs","repos_url":"https://api.github.com/users/luispabon/repos","events_url":"https://api.github.com/users/luispabon/events{/privacy}","received_events_url":"https://api.github.com/users/luispabon/received_events","type":"User","site_admin":false},"created_at":"2017-10-20T09:47:48Z","updated_at":"2017-10-20T09:47:48Z","author_association":"CONTRIBUTOR","body":"Actually scratch that. 1025 is the web interface. Kill your environment\nthen bring it up with docker compose, and look at the logs for mailhog see\nif it's failing to initiate\n\nOn Fri, 20 Oct 2017, 11:46 Luis Pabón, <luis.pabon@auronconsulting.co.uk>\nwrote:\n\n> Your connection settings are wrong, port 1026 is for the Web interface.\n> Not in front of the computer yet so I can't check, have a look at the\n> readme generated with the environment for the right port\n>\n> On Fri, 20 Oct 2017, 11:43 Yaroslav Kuznetsov, <notifications@github.com>\n> wrote:\n>\n>> Hello! I'm using this docker-compose\n>>\n>> mailhog:\n>>   image: mailhog/mailhog:latest\n>>   container_name: toplfe-dev-mailhog\n>>   ports:\n>>     - \"1026:8025\"\n>>\n>> redis:\n>>   image: redis:alpine\n>>   container_name: toplfe-dev-redis\n>>\n>> webserver:\n>>   image: nginx:alpine\n>>   container_name: toplfe-dev-webserver\n>>   working_dir: /application\n>>   volumes:\n>>       - .:/application\n>>       - ./phpdocker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf\n>>   ports:\n>>    - \"1025:80\"\n>>\n>> php-fpm:\n>>   build: phpdocker/php-fpm\n>>   container_name: toplfe-dev-php-fpm\n>>   working_dir: /application\n>>   volumes:\n>>     - .:/application\n>>     - ./phpdocker/php-fpm/php-ini-overrides.ini:/etc/php/7.1/fpm/conf.d/99-overrides.ini\n>>     - ./phpdocker/php-fpm/php-ini-overrides.ini:/etc/php/7.1/cli/conf.d/99-overrides.ini\n>>\n>> adminer:\n>>   image: adminer\n>>   container_name: toplfe-dev-adminer\n>>   restart: always\n>>   ports:\n>>     - \"1024:8080\"\n>>\n>> Then i try to use mail function in my app get this error\n>> root@2e4f8b24662c:/application# php -r \"mail('caffeinated@example.com',\n>> 'My Subject', 'asdas');\" error sending mail 2017/10/20 09:31:52 dial tcp\n>> 172.18.0.3:1026: getsockopt: connection refused\n>>\n>> Docker version 17.05.0-ce, build 89658be\n>> docker-compose version 1.16.1, build 6d1ac21\n>>\n>> —\n>> You are receiving this because you are subscribed to this thread.\n>> Reply to this email directly, view it on GitHub\n>> <https://github.com/phpdocker-io/phpdocker.io/issues/134>, or mute the\n>> thread\n>> <https://github.com/notifications/unsubscribe-auth/AGF8V668YgVTlmxioA_fMzUtw3_OfybWks5suGs_gaJpZM4QAbaj>\n>> .\n>>\n> --\n> Kind regards,\n> Luis Pabon\n>\n-- \nKind regards,\nLuis Pabon\n"}}
{"actor":{"display_login":"luispabon"}}