-
Notifications
You must be signed in to change notification settings - Fork 530
Update docs to use docker compose commands #100
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
Update docs to use docker compose commands #100
Conversation
It's necessary to run yarn remote localhost 2580
I'm added Docker installation page if someaone wants to use it, i change the commands yarn start, yarn dev, yarn debug to the respective docker-compose commands and separate running commands for "With Docker" and "Locally", in "Locally" i left it as it was. update docs
2a3b49a to
41f888f
Compare
Remove the build script from this branch an use the build come from the origin main
docker-compose.debug.yaml
Outdated
| @@ -0,0 +1,3 @@ | |||
| services: | |||
| api: | |||
| command: bash -c "yarn install && yarn debug" No newline at end of file | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If using the debug command, we should also expose the remote debug port, by default it's 9229. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok i configured the debug to docker.
See the commit here: e9a05b1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And configured to run locally.
See the commit here: 5b5c626
Config debug on .vscode to run in attach mode on port 9229, modify .gitignore to not ignore this file. On the package.json add explicity what port the debug need to run and add --nolazy flag reason: https://stackoverflow.com/questions/21534565/what-does-the-node-js-nolazy-flag-mean Expose the debug port only if docker-compose-debug.yaml file is runned. Add inlineSourceMap flag to tsconfig.json reference: https://www.typescriptlang.org/tsconfig#inlineSourceMap
Description
I updated the docs describing how to run the application with Docker and I left as Locally the previous instructions.
I also expose socket port to run remote
Why
It's a good thing to describe because there are those who didn't want to install the dependencies locally