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 oms-docker/.env file to ENABLED_SERVICES variable.
Within the repository, containers should be placed in the docker/[container] folder, which would contain the Dockerfile and act as the build context, including any other necessary files.
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
- /usr/app/logs - for storing the logs (both error and usage)