version: '2'
services:
  nats:
    image: nats
    ports:
     - "4222:4222"
     - "6222:6222"
     - "8222:8222"
  product-read:
    build:
      context: ./product-read
    links:
      - nats
    ports:
      - 8081:8081
  product-write:
    build:
      context: ./product-write
    links:
      - nats
    ports:
      - 8080:8080
