Hello !
I have a docker question. I just created my forest project using docker & noticed that the docker-compose file contains :
volumes:
- ./:/usr/src/app
Should I specify my Node.js (Express) app path ?
Thanks in advance.
Nadia
Hello !
I have a docker question. I just created my forest project using docker & noticed that the docker-compose file contains :
volumes:
- ./:/usr/src/app
Should I specify my Node.js (Express) app path ?
Thanks in advance.
Nadia
Hi @nadiab, and welcome to our community
The shared volume is used only to share the lumber generate code between your host and the generated backend container, to ease code modifications you might want to do (Like adding smart actions, …).
If you are running docker-compose up
directly in your lumber generated project folder, everything should work as expected.
You should not have anything to do with this if you want to keep the docker-compose
file as it is.
Let me know if that answers your question
Hi @jeffladiray,
Thank you & thanks for reaching out !
I’m running docker-compose directly in my lumber project. I shouldn’t touch the docker-compose configuration then, am I right ?
Thanks again for your help.
Have a nice day
Hello @nadiab,
Exactly, this particular line in the docker-compose file is allowing docker to use your project’s files, so if you leave it as is, it will use the current directory as a source for the Forest Admin agent.