Grandnode on docker containers

Friday, April 26, 2024 12:34:00 AM
  • Posted: Sunday, February 9, 2020 2:46 PM
  • 3
Hi,
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 0.0.0.0:8081 --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?
0
  • Posted: Sunday, February 9, 2020 5:41 PM
  • Team
  • 151
Hi,
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

Regards
Krzysztof
0
back to top
Filters