Implementation of nsq handling redis data update
To run, clone this project and change the volumes
and working_dir
of every services in docker-compose.yml
After that, run
docker-compose up
You can add -d
to run docker in the background.
Currently we need the following in an .env
file:
redisConn=redis:6379
dbHost=db
dbPort=5432
dbUser=postgres
dbPass=password
dbName=postgres
messageChannel=message_channel
messageTopic=message_topic
nsqdAddr=nsqd:4150
lookupAddr=nsqlookupd:4161
There is definitely a better way to do it. Feel free to create a PR on improving it!