guybartal / mts-services

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A base repo for all microservices

Running locally using docker compose

Option 1 (default) - All services in local mode, without service discovery nor config

Note: discovery and config will start but will not be used.

Either define PROFILE as local or leave it empty.

export PROFILE=local
docker-compose up -d

in order to skip loading discovery and config, 0 instances can be specified:

export PROFILE=local
docker-compose up -d --scale discovery-server=0 --scale config-server=0

Option 2 - All services (including discovery and config)

In this example 'dev' was chosen, however any profile can be set.

export PROFILE=dev
docker-compose up -d

About

License:MIT License


Languages

Language:Java 88.5%Language:JavaScript 10.7%Language:Dockerfile 0.7%Language:Shell 0.2%