openvscode-server
openvscode-server copied to clipboard
Add Persistent Volume in Docker
I'm not able to map a persistent volume to the config & workspace folder. In that way, every time I update the container, everything is gone. I'm aware, that the purpose is rather for temporary use cases, but I personally want to create an persistent IDE on my NAS which is always and everywhere available.
If someone could help how to set up the compose file it would be awesome. If not a feature request, please point me to the right direction.
THX
Does this help? https://plusreturn.com/blog/open-vscode-server-offline-deployment-for-nodejs-development/
@orappold do you still need help?
Probably because the container will overwrite each time you rebuild or vice versa? I had to use rsync for a Wordpress container (entrypoint script, so loaded per container not image):
rsync -Praz --progress /wordpress/ /var/www/html
/wordpress
is the dist source files
This might be help to persistent volume
be at workspace directory
volumes:
- ./edge-vol:/usr/src/app