version: '2'
services:
  nodeserver:
    build:
      context: .
    environment:
      - DATABASE_ADDR=mongo
    links:
      - mongo
      - ossserver
    depends_on:
      - mongo
      - ossserver
  mongo:
    image: mongo
  nginx:
    image: nginx
    links:
      - nodeserver
    volumes:
      - ./nginx.conf:/etc/nginx/conf.d/api.conf:ro
      - ~/dist:/usr/share/nginx/html:ro
  ossserver:
    image: ossserver

version: '2'
services:
  nodeserver:
    build:
      context: .
    environment:
      - DATABASE_ADDR=mongo
    links:
      - mongo
      - ossserver
    depends_on:
      - mongo
      - ossserver
  mongo:
    image: mongo
  nginx:
    image: nginx
    links:
      - nodeserver
    volumes:
      - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
      - ~/dist:/usr/share/nginx/html:ro
  ossserver:
    image: ossserver

Fix bug with nginx using the default config instead of the new one.
Fix bug with nginx using the default config instead of the new one.
