Each microservice's source code should contain docker/docker-compose.yml file that describes Docker's services that are need to build/run this microservice.This file is parsed and run by oms.sh script. To start your microservice along with others, just add its name to .env file to ENABLED_SERVICES variable.
Also, there should be a Dockerfile that describes how to build/run this microservice.
Each Docker container that contains microservice's data and is used to run the microservice should use the predefined folder structure:
- /usr/app/src - for storing application's source code
- /usr/app/scripts - for storing application's bootstrapping scripts
- /usr/app/private - for storing application's private data (like application keys, passwords etc.)
- /usr/app/shared - for serving a shared volume