A template for adonisjs + mysql in docker
The docker-compose file use var in the adonisjs .env
Create .env.docker
file
Change host in the .env.docker
file
HOST=0.0.0.0
docker-compose up
- npm install
- Copy .env file
- Run migration
- Run node server
docker exec -it appname-nodejs /bin/bash