More details
Just an example app to work with, to explore the run options of docker containers and the environments that it can be applicated. Designed to work with an already builded database, on mysql, especially the image sales-db.
The environment looks like this:
MySQL variables
MYSQL_HOST : the mysql host (default localhost)
MYSQL_PORT : the mysql port (default 3306)
MYSQL_USER : the mysql user
MYSQL_PASSWORD : the mysql password
MYSQL_DATABASE : the default database to work with
MYSQL_RETRY_CONN : if is not empty, makes the app try the connection a few times before crashing
MYSQL_RETRY_MAX : the max attempts to reconnection (default 10)
MYSQL_RETRY_TIME : the time between the attempts (default 15000, defined in ms)
App Variables
HOST : the app host (default 0.0.0.0)
PORT : the app port (default 3333)
TOKEN_MAX_AGE : the token "maxAge" (default 3600)
REFRESH_TOKEN_EXPIRES_IN : the "expiresIn" for the refresh token (default '6h')