version: '2'
services:
  web:
    environment:
      - NODE_ENV=development
      - API_INTERVAL=120000
      - API_URL=http://dataref.cnn.com/breaking_news/domestic.json
    build:
      context: .
      dockerfile: Dockerfile.devx
    command: ["npm", "run", "dev"]
    ports:
      - '8080:8080'
    volumes:
      - .:/home/app/breakingnews-vue
      - /home/app/breakingnews-vue/node_modules
  test:
    environment:
      - NODE_ENV=testing
      - API_INTERVAL=120000
      - API_URL=http://dataref.cnn.com/breaking_news/domestic.json
    build: .
    command: ['npm', 'run', 'unit:watch']
    user: root
    volumes:
      - .:/home/app/breakingnews-vue
      - /home/app/breakingnews-vue/node_modules

version: '2'
services:
  web:
    environment:
      - NODE_ENV=development
      - API_INTERVAL=120000
      - API_URL=http://dataref.cnn.com/breaking_news/domestic.json
    build:
      context: .
      dockerfile: Dockerfile.devx
    command: ["npm", "run", "dev"]
    ports:
      - '8080:8080'
    volumes:
      - .:/home/app/breakingnews-vue
      - /home/app/breakingnews-vue/node_modules
  test:
    environment:
      - NODE_ENV=testing
      - API_INTERVAL=120000
      - API_URL=http://dataref.cnn.com/breaking_news/domestic.json
    build:
      context: .
      dockerfile: Dockerfile.devx
    command: ['npm', 'run', 'unit:watch']
    user: root
    volumes:
      - .:/home/app/breakingnews-vue
      - /home/app/breakingnews-vue/node_modules

Update build context for test environment
chore: Update build context for test environment
