Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For development efforts just a suggestion to make /opt/app a shared volume. #7

Open
necroscope opened this issue Feb 14, 2017 · 1 comment

Comments

@necroscope
Copy link

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.

https://docs.docker.com/engine/tutorials/dockervolumes/

@mastacheata
Copy link

mastacheata commented Jun 23, 2018

You could always just go into the container:
docker-compose exec nightscout bash

Also 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:
https://docs.docker.com/compose/compose-file/#volumes

To add a volume mapping for /opt/app to the app subfolder of the compose file add this below ports on the nightscout service:

volumes:
  - "./app:/opt/app"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants