diff --git a/docker-compose.env b/docker-compose.env index c4ff2a8..739cd70 100644 --- a/docker-compose.env +++ b/docker-compose.env @@ -3,7 +3,7 @@ LOGGER=true LOGLEVEL=info SERVICEDIR=dist/services -TRANSPORTER=redis://redis:6379 +TRANSPORTER=nats://localhost:4222 COMICS_DIRECTORY=/Users/rishi/work/threetwo-core-service/comics USERDATA_DIRECTORY=/Users/rishi/work/threetwo-core-service/userdata REDIS_URI=redis://redis:6379 diff --git a/moleculer.config.ts b/moleculer.config.ts index 69e2ce2..6744107 100644 --- a/moleculer.config.ts +++ b/moleculer.config.ts @@ -90,7 +90,7 @@ const brokerConfig: BrokerOptions = { // More info: https://moleculer.services/docs/0.14/networking.html // Note: During the development, you don't need to define it because all services will be loaded locally. // In production you can set it via `TRANSPORTER=nats://localhost:4222` environment variable. - transporter: process.env.REDIS_URI || "redis://localhost:6379", + transporter: "nats://localhost:4222", // Define a cacher. // More info: https://moleculer.services/docs/0.14/caching.html