[x] Searched the bug tracker for similar pull requests.
[x] This PR is related to the code that is common to RABIT front- and backend and will be merged to the RABIT-COMMON repository.
đ | Licensing
In order to be accepted and merged into RABIT, each piece of code must be released under ISC license or a compatible license.
Check one of the following options:
[x] I am the original author of this code, and I am willing to release it under the ISC license.
[ ] I am not the original author of this code, but it is released under the ISC license or a compatible license (please provide evidence).
âšī¸ | Description / Further Information
Explanation of the purpose and effect of your pull request goes here.
Provide context and examples as necessary.
Add a docker-compose config that will deploy the db container for those who want to use npm run start on frontend and backend but don't want to go through setting up MySQL.
Up: docker-compose -f db-docker-compose.yml up
Down: docker-compose -f db-docker-compose.yml down
Down and remove volumes: docker-compose -f db-docker-compose.yml down -v
It's very important to pass -f db-docker-compose.yml when you want to deploy just db as it otherwise defaults to reading docker-compose.yml which will deploy the whole stack.
On the backend, DB_HOST environment variable must be set to localhost as technically the db container is exposing the conection to localhost, and if we put db then it will look at connection on hostname db and you'll get getaddrinfo ENOTFOUND db.
đ | Pre-PR
Before submitting a pull request make sure you have:
đ | Licensing
Check one of the following options:
âšī¸ | Description / Further Information
Add a docker-compose config that will deploy the db container for those who want to use
npm run start
on frontend and backend but don't want to go through setting up MySQL.docker-compose -f db-docker-compose.yml up
docker-compose -f db-docker-compose.yml down
docker-compose -f db-docker-compose.yml down -v
It's very important to pass
-f db-docker-compose.yml
when you want to deploy justdb
as it otherwise defaults to readingdocker-compose.yml
which will deploy the whole stack.On the backend,
DB_HOST
environment variable must be set tolocalhost
as technically thedb
container is exposing the conection to localhost, and if we putdb
then it will look at connection on hostnamedb
and you'll getgetaddrinfo ENOTFOUND db
.