Grandnode on docker containers

Monday, February 24, 2020 3:18:24 AM
  • Posted: Sunday, February 9, 2020 2:46 PM
  • 3
I work without image registry, so that i build Grandnode after my changes on my server. However it takes some time to perform a deploy after commiting some changes. First of all - if someone wants to work like me i want to share my script with steps that helps me a lot to do it as fast as it's possible.

docker rm $(docker stop $(docker ps -a -q --filter ancestor=grandnode--format="{{.ID}}"))
docker system prune --all --volumes
git pull
docker build -t grandnode -f Dockerfile .
docker create grandnode
docker run -d -p --name grandnode --link mongodb:mongo grandnode

However - after recreating Grandnode i have to stop it and make a database drop and recreate with older stuff - so my question is  - is it possible to connect to existing grandnode database without request to mongodb to create another one?
  • Posted: Sunday, February 9, 2020 5:41 PM
  • Team
  • 54
In docker command you need to use command VOLUME for folders : App_Data, Plugins, Themes
for example
VOLUME /app/App_Data /app/Plugins /app/Themes

back to top