for some reason when I running MySQL from docker compose I can't get access to it. Because of this I am setting up containers using bash scripts
This app can be fully containerised, or you can run server locally for the quicker debugging.
- Most of the fields you need to fill with your private data
- DB_HOST should have the value of the data base host. When you run the serer locally this value should equal to
"127.0.0.1"
and when you run the server from the container, change it to"mysqlContainer"
- Insure you are in the root of project
- Create server image by running
sh ./scripts/create-server-image.sh
- Create mysql cotainer by running
sh ./scripts/create-mysql-container.sh
- Create server container by running
sh ./scripts/create-server-container.sh
After starting the server migrations will start automatically and will create required table. That's it! Your are good to use it!