- Swagger UI
Swagger UI is a collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
- Portainer
Portainer is a lightweight management UI which allows you to easily manage your Docker host or Swarm cluster.
Filename: docker-compose.override.yml
version: '3.7' # Must match the version specified in docker-compose.yml
services:
nginx:
build: # This results in using the development stage which disables HTTPS
target: development
gateway-cache:
ports: # Allow access to the gateway-cache, usefull for debugging in development
- 6379:6379
gateway-database:
ports: # Allow access to the gateway-database, usefull for debugging in development
- 3306:3306
gateway-service:
environment: # Set NODE_ENV to development to output all logs to the Docker console
NODE_ENV: development
All commands, for TypeORM, are written for usage in a development enviremont, to use these commands in production prefix them with the following:
$ docker-compose exec gateway-service ...
$ npm run typeorm -- migration:generate -n PostRefactoring
$ npm run typeorm -- migration:run
$ npm run typeorm -- migration:revert
$ docker-compose build
$ docker-compose up
$ docker-compose up --build
$ docker-compose up --scale gateway-service=X
$ docker-compose up --detach --build gateway-database gateway-cache
$ cd server; npm run dev
$ docker-compose exec -T gateway-database mysqldump -uroot -proot --no-data --skip-comments --databases gluten > gateway/database/init.sql
$ docker-compose exec -T gateway-database mysqldump -uroot -proot --no-create-info --skip-comments gluten migrations >> gateway/database/init.sql
$ docker-compose exec -T gateway-database mysqldump -uroot -proot --no-create-info --skip-comments gluten --ignore-table=gluten.migrations > gateway/database/test.sql