{"action":"closed","issue":{"url":"https://api.github.com/repos/jwilder/nginx-proxy/issues/594","repository_url":"https://api.github.com/repos/jwilder/nginx-proxy","labels_url":"https://api.github.com/repos/jwilder/nginx-proxy/issues/594/labels{/name}","comments_url":"https://api.github.com/repos/jwilder/nginx-proxy/issues/594/comments","events_url":"https://api.github.com/repos/jwilder/nginx-proxy/issues/594/events","html_url":"https://github.com/jwilder/nginx-proxy/issues/594","id":180541376,"number":594,"title":"504 Gateway Time-out","user":{"login":"returntrip","id":14056122,"avatar_url":"https://avatars.githubusercontent.com/u/14056122?v=3","gravatar_id":"","url":"https://api.github.com/users/returntrip","html_url":"https://github.com/returntrip","followers_url":"https://api.github.com/users/returntrip/followers","following_url":"https://api.github.com/users/returntrip/following{/other_user}","gists_url":"https://api.github.com/users/returntrip/gists{/gist_id}","starred_url":"https://api.github.com/users/returntrip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/returntrip/subscriptions","organizations_url":"https://api.github.com/users/returntrip/orgs","repos_url":"https://api.github.com/users/returntrip/repos","events_url":"https://api.github.com/users/returntrip/events{/privacy}","received_events_url":"https://api.github.com/users/returntrip/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-10-02T23:01:44Z","updated_at":"2016-10-04T07:35:34Z","closed_at":"2016-10-04T07:35:34Z","body":"I am getting a time out error when using docker-gen with nginx and letsencrypt. I think it might be due to a configuration issue in my docker-compose.yml and I wanted to ask for some help.\r\n\r\nI have added the nginx.tmpl with\r\n\r\n`curl https://raw.githubusercontent.com/jwilder/nginx-proxy/master/nginx.tmpl > nginx.tmpl`\r\n\r\nI have added the bridge network with \r\n\r\n`docker network create -d bridge nginx-proxy`\r\n\r\nThe letsencrypt certificates are retreived and installed in the correct folders and I can see the certificate is valid (the browser will retrive the certificate after the time out).\r\n\r\nHere is also my docker-compose.yml. I have substituted my domain with a dummy one.\r\n\r\n\r\n```\r\nversion: \"2\"\r\n\r\nservices:\r\n  nginx:\r\n    image: nginx\r\n    container_name: nginx\r\n    ports:\r\n      - \"80:80\"\r\n      - \"443:443\"\r\n    volumes:\r\n      - \"/etc/nginx/conf.d\"\r\n      - \"/etc/nginx/vhost.d\"\r\n      - \"/usr/share/nginx/html\"\r\n      - \"../../../volumes/proxy/certs:/etc/nginx/certs:ro\"\r\n    networks:\r\n      - proxy-tier\r\n  nginx-gen:\r\n    image: jwilder/docker-gen\r\n    container_name: nginx-gen\r\n    volumes:\r\n      - \"/var/run/docker.sock:/tmp/docker.sock:ro\"\r\n      - \"/home/user/wordpress/nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro\"\r\n    volumes_from:\r\n      - nginx\r\n    entrypoint: /usr/local/bin/docker-gen -notify-sighup nginx -watch -wait 5s:30s /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf\r\n  letsencrypt-nginx-proxy-companion:\r\n    image: jrcs/letsencrypt-nginx-proxy-companion\r\n    container_name: letsencrypt-nginx-proxy-companion\r\n    volumes_from:\r\n      - nginx\r\n    volumes:\r\n      - \"/var/run/docker.sock:/var/run/docker.sock:ro\"\r\n      - \"../../../volumes/proxy/certs:/etc/nginx/certs:rw\"\r\n    environment:\r\n      - NGINX_DOCKER_GEN_CONTAINER=nginx-gen\r\n\r\n  wordpress:\r\n    image: wordpress\r\n    container_name: wordpress\r\n    ports:\r\n      - 8000:80\r\n    environment:\r\n      - WORDPRESS_DB_PASSWORD=example\r\n      - VIRTUAL_HOST=blog.dummy.com\r\n      - VIRTUAL_NETWORK=nginx-proxy\r\n      - LETSENCRYPT_HOST=blog.dummy.com\r\n      - LETSENCRYPT_EMAIL=user@gmail.com\r\n    networks:\r\n      - proxy-tier\r\n      - default\r\n \r\n  mysql:\r\n    image: mariadb\r\n    container_name: mysql\r\n    environment:\r\n      - MYSQL_ROOT_PASSWORD=example\r\n    networks:\r\n      - proxy-tier\r\n      - default\r\n\r\nnetworks:\r\n  proxy-tier:\r\n    external:\r\n      name: nginx-proxy\r\n```\r\n\r\nI have also:\r\n\r\n- tested the wordpress container by mapping to port 8000 on the host (see above in docker-compose) and it worked\r\n- exposed wordpress container port 80 with no success\r\n\r\nThanks in advance for your help."}}
{"actor":{"display_login":"returntrip"}}