Public Repository

Last pushed: 9 months ago
Short Description
Short description is empty for this repo.
Full Description

Setup

create docker network

docker network create eventbus

docker-compose for the rabbitmq service

version: '2'

services:
    rabbitmq:
        image: rabbitmq:3-management
        ports:
            - 5673:5672
            - 15673:15672
            - 8080:8080
        networks: 
            - eventbus

networks:
  eventbus:
    external:
      name: eventbus

docker-compose for the audit-log-service

version: '2'

services:
  mysql:
    image: mysql
    container_name: mysql
    environment:
      MYSQL_PASSWORD: logevents
      MYSQL_DATABASE: logevents
      MYSQL_USER: logevents
      MYSQL_ROOT_PASSWORD: 12341234
    ports:
      - 3306:3306
    networks: 
      - eventbus
  phpmyadmin:
    image: phpmyadmin/phpmyadmin
    container_name: phpmyadmin
    links:
     - mysql:db
    ports:
     - 5001:80
    networks: 
      - eventbus
  minor.wsa.auditlogservice:
    image: steven166/audit-log-service:latest
    environment:
      'ConnectionStrings:DataAccessMySqlProvider': server=db;userid=logevents;password=logevents;database=logevents;
      'ConnectionStrings:RabbitMQ': rabbitmq
    links:
     - mysql:db
    external_links:
     - rabbitmq:rabbitmq
    ports:
      - 5000:80
    networks: 
      - eventbus

networks:
  eventbus:
    external:
      name: eventbus

Usage

get logs

GET http://localhost:5000/api/v1/logs

replay logs

POSThttp://localhost:5000/api/v1/replay?mintime={timestamp}&exchange={exchangeName}

Docker Pull Command
Owner
steven166

Comments (0)