Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Add a Docker Compose File #106

Open
JeffNeff opened this issue Jan 4, 2023 · 0 comments
Open

Add a Docker Compose File #106

JeffNeff opened this issue Jan 4, 2023 · 0 comments

Comments

@JeffNeff
Copy link

JeffNeff commented Jan 4, 2023

I think the addition of a docker-compose and example broker-config.json would bring a lot here.

Something along the lines of :

services:
  broker:
    image: redisbroker
    build:
      context: .
      dockerfile: cmd/redis-broker/Dockerfile
    command: start
    ports:
      - 8080
    environment:
      BROKER_CONFIG_PATH: /broker-config.yaml 
      REDIS_ADDRESS: redis:6379 
    volumes:
      - ./broker-config-example.yaml:/broker-config.yaml 

  redis:
    container_name: redis
    hostname: redis
    image: redis/redis-stack-server:latest
    environment:
      REDIS_ARGS: --appendonly yes --appendfsync always --rdbcompression yes
    ports:
      - 6379:6379

  redis-commander:
    container_name: redis-commander
    hostname: redis-commander
    image: rediscommander/redis-commander:latest
    build: .
    restart: always
    environment:
      - REDIS_HOSTS=local:redis:6379
    ports:
      - 8089:8081

  sockeye:
    image: docker.io/n3wscott/sockeye:v0.7.0@sha256:e603d8494eeacce966e57f8f508e4c4f6bebc71d095e3f5a0a1abaf42c5f0e48
    ports:
      - 8080:8080
triggers:
  trigger1:
    target:
      url: http://sockeye:8080
      deliveryOptions:
        retry: 2
        backoffDelay: PT2S
        backoffPolicy: linear
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant