version: '2'
services:
  backend:
    build: ./backend
    ports:
    - "8081:80"
    - "9229:9229"
    volumes:
    - ./backend:/opt/app
    links:
    - mongo
    - redis
  frontend:
    build: ./frontend
    ports:
    - "8080:80"
    volumes:
    - ./frontend:/opt/app
  mongo:
    image: mongo
    ports:
    - "27017:27017"
  mongoclient:
    image: mongoclient/mongoclient
    ports:
    - "3000:3000"
  redis:
    image: redis
    command: "--notify-keyspace-events Ex"