Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
version: '3.5'
services:
  bgw:
    image: "docker.linksmart.eu/bgw:latest"
    container_name: "bgw"
    ports:
      - 443:443
      - 8883:8883
      - 9002:9002
    volumes:
      - "<path_to_your_config_folder>:/bgw/config"
      - "<path_to_your_certs_folder>:/bgw/certs"
  redis:
    container_name: redis
    image: redis:5-alpine

Add this to your BGW configyour config.json toml (by default, Redis support is not enabled):

Code Block
languagejs
"[auth_-service_]
redis_expiration": 180,
"auth_service_= 120
redis_host": "= redis",
"auth_service_redis_port": = 6379

The BGW auth service will store keys and values in Redis like this:

...