- Start a mysql shell with
sudo mysql
- Run
CREATE USER 'baby'@'localhost' IDENTIFIED BY '<password>';
- Run
source initialize_database.sql
- npm install
- Set database connection string as env
`export mysqlConnectionString=mysql://baby:@localhost/baby
- npm run dev
- Build image
docker build --build-arg="PORT=3001" -t baby-app-api .
- Run container
docker run -d --restart unless-stopped --net="host" --env mysqlConnectionString=mysql://baby:<password>@localhost/baby --env PORT=3001 baby-app-api