- Clone this repo on a machine where you'd like to deploy api
- Execute
bash initial-setup.sh
- Edit
docker-compose.override.yml
and changeRABBITMQ_DEFAULT_USER
,RABBITMQ_DEFAULT_PASS
to something secure - Edit
docker-compose.override.yml
and changeMONGO_INITDB_ROOT_PASSWORD
to something secure - Edit
docker-compose.override.yml
and 'changeme.com' substring inMONGODB_URI
withMONGO_INITDB_ROOT_PASSWORD
value - Edit
docker-compose.override.yml
and change 'admin' substring inAMQP_URL
withRABBITMQ_DEFAULT_USER
value - Edit
docker-compose.override.yml
and change 'gateway-bunny' substring inAMQP_URL
withRABBITMQ_DEFAULT_PASS
value
- Execute
bash run-prod.sh
to run in prod mode orbash run-dev.sh
to run in dev mode
Communicate with logger microservice via rabbitmq based on your docker configuration. Simply publish message to a direct exchange. Here is a example:
{ "pattern": "log-item", "data": { "key": "value" } }
You only need to change "data"
value.