version: '2'
services:
  redis:
    image: redis

  ebstatus:
    image: crossref/event-data-status:0.1.2
    expose:
     - "8003"
    ports:
     - "8003:8003"
    depends_on:
     - redis
    environment:
     - REDIS_HOST=redis
     - REDIS_PORT=6379
     - REDIS_DB=0
     - PORT=8003
     - JWT_SECRETS=TEST,TEST2
    command: "lein run"

  test:
    build: .
    user: deploy
    volumes:
     - .:/code2
     - ./.m2-cache:/home/deploy/.m2
    depends_on:
     - redis
     - ebstatus
    environment:
     - REDIS_HOST=redis
     - REDIS_PORT=6379
     - REDIS_DB=0
     - JWT_SECRETS=TEST,TEST2
     - STORAGE=redis
     - PORT=8002
     - STATUS_SERVICE=http://ebstatus:8003
     - BROADCAST-1-JWT=JWT-ONE
     - BROADCAST-1-ENDPOINT=http://endpoint1.com/endpoint
     - BROADCAST-1-NAME=Endpoint One
     - BROADCAST-1-TYPE=live
     - BROADCAST-2-JWT=JWT-TWO
     - BROADCAST-2-ENDPOINT=http://endpoint2.com/endpoint
     - BROADCAST-2-NAME=Endpoint Two
     - BROADCAST-2-TYPE=batch
    command: "lein test :component"




version: '2'
services:
  redis:
    image: redis

  ebstatus:
    image: crossref/event-data-status:0.1.2
    expose:
     - "8003"
    ports:
     - "8003:8003"
    depends_on:
     - redis
    environment:
     - REDIS_HOST=redis
     - REDIS_PORT=6379
     - REDIS_DB=0
     - PORT=8003
     - JWT_SECRETS=TEST,TEST2
    command: "lein run"

  test:
    build: .
    user: deploy
    volumes:
     - .:/code
     - ./.m2-cache:/home/deploy/.m2
    depends_on:
     - redis
     - ebstatus
    environment:
     - REDIS_HOST=redis
     - REDIS_PORT=6379
     - REDIS_DB=0
     - JWT_SECRETS=TEST,TEST2
     - STORAGE=redis
     - PORT=8002
     - STATUS_SERVICE=http://ebstatus:8003
     - BROADCAST-1-JWT=JWT-ONE
     - BROADCAST-1-ENDPOINT=http://endpoint1.com/endpoint
     - BROADCAST-1-NAME=Endpoint One
     - BROADCAST-1-TYPE=live
     - BROADCAST-2-JWT=JWT-TWO
     - BROADCAST-2-ENDPOINT=http://endpoint2.com/endpoint
     - BROADCAST-2-NAME=Endpoint Two
     - BROADCAST-2-TYPE=batch
    command: "lein test :component"




Fix typo in docker-compose file.
Fix typo in docker-compose file.
