Sign inSign up

danielpelajo/sales-app

By danielpelajo

•Updated over 3 years ago

Just an app to work with the database demo "sales-db".

Image
Languages & frameworks
API management
Databases & storage
0

115

danielpelajo/sales-app repository overview

⁠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')

Tag summary

Content type

Image

Digest

sha256:b11ef49bd…

Size

104.5 MB

Last updated

over 3 years ago

docker pull danielpelajo/sales-app:0.4.3