{"action":"created","issue":{"url":"https://api.github.com/repos/nightscout/nightscout-docker/issues/7","repository_url":"https://api.github.com/repos/nightscout/nightscout-docker","labels_url":"https://api.github.com/repos/nightscout/nightscout-docker/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/nightscout/nightscout-docker/issues/7/comments","events_url":"https://api.github.com/repos/nightscout/nightscout-docker/issues/7/events","html_url":"https://github.com/nightscout/nightscout-docker/issues/7","id":207428213,"node_id":"MDU6SXNzdWUyMDc0MjgyMTM=","number":7,"title":"For development efforts just a suggestion to make /opt/app a shared volume.","user":{"login":"necroscope","id":4573706,"node_id":"MDQ6VXNlcjQ1NzM3MDY=","avatar_url":"https://avatars1.githubusercontent.com/u/4573706?v=4","gravatar_id":"","url":"https://api.github.com/users/necroscope","html_url":"https://github.com/necroscope","followers_url":"https://api.github.com/users/necroscope/followers","following_url":"https://api.github.com/users/necroscope/following{/other_user}","gists_url":"https://api.github.com/users/necroscope/gists{/gist_id}","starred_url":"https://api.github.com/users/necroscope/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/necroscope/subscriptions","organizations_url":"https://api.github.com/users/necroscope/orgs","repos_url":"https://api.github.com/users/necroscope/repos","events_url":"https://api.github.com/users/necroscope/events{/privacy}","received_events_url":"https://api.github.com/users/necroscope/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-14T06:20:02Z","updated_at":"2018-06-23T20:10:58Z","closed_at":null,"author_association":"NONE","body":"On the nodejs container the suggestion is to make /opt/app a shared docker volume.  A docker volume would allow for easier development as we could use our IDE development tools on our host (windows, mac and linux) against the files on the volume that the container uses.  Just an easier way of editing things like servers.js for testing things out.  This way we don't have to install tools in the container etc.\r\n\r\nhttps://docs.docker.com/engine/tutorials/dockervolumes/"},"comment":{"url":"https://api.github.com/repos/nightscout/nightscout-docker/issues/comments/399705255","html_url":"https://github.com/nightscout/nightscout-docker/issues/7#issuecomment-399705255","issue_url":"https://api.github.com/repos/nightscout/nightscout-docker/issues/7","id":399705255,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTcwNTI1NQ==","user":{"login":"mastacheata","id":716261,"node_id":"MDQ6VXNlcjcxNjI2MQ==","avatar_url":"https://avatars2.githubusercontent.com/u/716261?v=4","gravatar_id":"","url":"https://api.github.com/users/mastacheata","html_url":"https://github.com/mastacheata","followers_url":"https://api.github.com/users/mastacheata/followers","following_url":"https://api.github.com/users/mastacheata/following{/other_user}","gists_url":"https://api.github.com/users/mastacheata/gists{/gist_id}","starred_url":"https://api.github.com/users/mastacheata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mastacheata/subscriptions","organizations_url":"https://api.github.com/users/mastacheata/orgs","repos_url":"https://api.github.com/users/mastacheata/repos","events_url":"https://api.github.com/users/mastacheata/events{/privacy}","received_events_url":"https://api.github.com/users/mastacheata/received_events","type":"User","site_admin":false},"created_at":"2018-06-23T20:10:58Z","updated_at":"2018-06-23T20:10:58Z","author_association":"NONE","body":"You could always just go into the container:\r\n`docker-compose exec nightscout bash`\r\n\r\nAlso since this is a docker-compose file, you should rather look here for details on how to persist data to a well-known folder on your machine:\r\nhttps://docs.docker.com/compose/compose-file/#volumes\r\n\r\nTo add a volume mapping for /opt/app to the app subfolder of the compose file add this below ports on the nightscout service:\r\nvolumes:\r\n  - \"./app:/opt/app\""}}
{"actor":{"display_login":"mastacheata"}}