version: '2'

services:
  processing:
    build: .
    image: hostview/processing
    volumes:
     - ./data:/data
     - ./app:/app
     - /app/node_modules
    links:
     - redis
     - postgres
    networks:
      - backtier
    environment:
     NODE_ENV: development
     DEBUG: hostview
     PROCESS_REDIS: redis://redis:6379
     PROCESS_DB: postgres://hostview:h0stvi3w@postgres/hostview
     PROCESS_WATCH: 'yes'
     PROCESS_DATA_DIR: '/data'
     PROCESS_RETRY: 1
     PROCESS_RETRY_DELAY: 1
     PROCESS_WORKERS: 1
     PROCESS_CONCURRENCY: 1

  redis:
    image: redis:3.0
    networks:
      - backtier

  postgres:
    image: postgres:9.5
    environment:
     POSTGRES_USER: hostview     
     POSTGRES_PASSWORD: h0stvi3w
     POSTGRES_DB: hostview  
    networks:
      - backtier
    volumes:
     - ./data:/data
     - ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d

networks:
  backtier:
    driver: bridge
version: '2'

services:
  processing:
    build: .
    image: hostview/processing:latest
    volumes:
     - ./data:/data
     - ./app:/app
     - /app/node_modules
    links:
     - redis
     - postgres
    networks:
      - backtier
    environment:
     NODE_ENV: development
     DEBUG: hostview
     PROCESS_REDIS: redis://redis:6379
     PROCESS_DB: postgres://hostview:h0stvi3w@postgres/hostview
     PROCESS_WATCH: 'yes'
     PROCESS_DATA_DIR: '/data'
     PROCESS_RETRY: 1
     PROCESS_RETRY_DELAY: 1
     PROCESS_WORKERS: 1
     PROCESS_CONCURRENCY: 1

  redis:
    image: redis:3.0
    networks:
      - backtier

  postgres:
    image: postgres:9.5
    environment:
     POSTGRES_USER: hostview     
     POSTGRES_PASSWORD: h0stvi3w
     POSTGRES_DB: hostview  
    networks:
      - backtier
    volumes:
     - ./data:/data
     - ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d

networks:
  backtier:
    driver: bridge
Add version to docker container
Add version to docker container
