Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 569 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 569 Bytes

adonisjs-docker

A template for adonisjs api + mysql in docker

The docker-compose file use vars from the adonisjs .env

Create .env file

Change host, db_connection in the .env file, create db_allow_empty_password and set it to yes (Setting this variable to yes is not recommended unless you really know what you are doing)

HOST=0.0.0.0

DB_HOST=adonis-mysql
DB_CONNECTION=mysql
DB_ALLOW_EMPTY_PASSWORD=yes

Start the environement :

docker-compose up -d

Enter in the nodejs container :

docker exec -it appname /bin/bash