Rocksus / read-redis

Implementation of nsq handling redis data update

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

read-redis

Implementation of nsq handling redis data update

Setting Up

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.

Environment Variables

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!

About

Implementation of nsq handling redis data update


Languages

Language:Go 99.4%Language:Dockerfile 0.6%