{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/docker-node/issues/508","repository_url":"https://api.github.com/repos/nodejs/docker-node","labels_url":"https://api.github.com/repos/nodejs/docker-node/issues/508/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/docker-node/issues/508/comments","events_url":"https://api.github.com/repos/nodejs/docker-node/issues/508/events","html_url":"https://github.com/nodejs/docker-node/issues/508","id":251737217,"number":508,"title":"nginx proxy and exit code 0","user":{"login":"vabatta","id":2137077,"avatar_url":"https://avatars0.githubusercontent.com/u/2137077?v=4","gravatar_id":"","url":"https://api.github.com/users/vabatta","html_url":"https://github.com/vabatta","followers_url":"https://api.github.com/users/vabatta/followers","following_url":"https://api.github.com/users/vabatta/following{/other_user}","gists_url":"https://api.github.com/users/vabatta/gists{/gist_id}","starred_url":"https://api.github.com/users/vabatta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vabatta/subscriptions","organizations_url":"https://api.github.com/users/vabatta/orgs","repos_url":"https://api.github.com/users/vabatta/repos","events_url":"https://api.github.com/users/vabatta/events{/privacy}","received_events_url":"https://api.github.com/users/vabatta/received_events","type":"User","site_admin":false},"labels":[{"id":156909101,"url":"https://api.github.com/repos/nodejs/docker-node/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-08-21T18:35:03Z","updated_at":"2017-08-22T19:55:19Z","closed_at":"2017-08-22T19:55:19Z","body":"Hi, I was just trying to get online my test application with docker and nodejs behind the https://github.com/jwilder/nginx-proxy .\r\nMy docker file\r\n```docker\r\nversion: \"2\"\r\n\r\nservices:\r\n  nginx-proxy:\r\n    container_name: nginx-proxy\r\n    image: jwilder/nginx-proxy:latest\r\n    ports:\r\n      - \"80:80\"\r\n      - \"443:443\"\r\n    volumes:\r\n      - ./nginx/certs:/etc/nginx/certs:ro\r\n      - ./nginx/vhost.d:/etc/nginx/vhost.d:ro\r\n      - ./nginx/custom.conf:/etc/nginx/conf.d/custom.conf:ro\r\n      - /var/run/docker.sock:/tmp/docker.sock\r\n\r\n  test:\r\n     container_name: test\r\n     image: node:8\r\n     restart: always\r\n     expose:\r\n       - 3030\r\n     volumes:\r\n       - ./my-app-with-package-json-and-start-script:/usr/src/app\r\n     environment:\r\n       VIRTUAL_HOST: test.my-domain.com\r\n       NODE_ENV: development\r\n       HTTPS_METHOD: nohttps\r\n```\r\n\r\nBut once I start the container I get just this message after the container creation\r\n`test exited with code 0`\r\n\r\nWhat I'm doing wrong?"},"comment":{"url":"https://api.github.com/repos/nodejs/docker-node/issues/comments/324134025","html_url":"https://github.com/nodejs/docker-node/issues/508#issuecomment-324134025","issue_url":"https://api.github.com/repos/nodejs/docker-node/issues/508","id":324134025,"user":{"login":"SimenB","id":1404810,"avatar_url":"https://avatars1.githubusercontent.com/u/1404810?v=4","gravatar_id":"","url":"https://api.github.com/users/SimenB","html_url":"https://github.com/SimenB","followers_url":"https://api.github.com/users/SimenB/followers","following_url":"https://api.github.com/users/SimenB/following{/other_user}","gists_url":"https://api.github.com/users/SimenB/gists{/gist_id}","starred_url":"https://api.github.com/users/SimenB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimenB/subscriptions","organizations_url":"https://api.github.com/users/SimenB/orgs","repos_url":"https://api.github.com/users/SimenB/repos","events_url":"https://api.github.com/users/SimenB/events{/privacy}","received_events_url":"https://api.github.com/users/SimenB/received_events","type":"User","site_admin":false},"created_at":"2017-08-22T19:55:19Z","updated_at":"2017-08-22T19:55:19Z","body":"Then it worked for your?\r\n\r\nIf so, you can use my suggestion of `working_dir` and having the command be `npm install && npm start`\r\n\r\nI'd recommend setting up a separate `Dockerfile` with all these commands, though 🙂"}}
{"actor":{"display_login":"SimenB"}}