version: '3'
services:
  api:
    build:
      context: .
      dockerfile: ./Dockerfile
    container_name: aclu-api
    environment:
      - MONGO_HOST=${MONGO_HOST}
      - MONGO_PORT=${MONGO_PORT}
      - MONGO_USERNAME=${MONGO_USERNAME}
      - MONGO_PASSWORD=${MONGO_PASSWORD}
      - MONGO_DBNAME=${MONGO_DBNAME}
    ports:
      - "50050:50050"
    volumes:
      - ./api:/src/api
    links:
      - db
  db:
    image: mongo:3.5.11
    ports:
      - "27017"
    container_name: aclu-db
    logging:
      driver: none

version: '3'
services:
  api:
    build:
      context: .
      dockerfile: ./Dockerfile
    container_name: aclu-api
    environment:
      - MONGO_HOST=${MONGO_HOST}
      - MONGO_PORT=${MONGO_PORT}
      - MONGO_USERNAME=${MONGO_USERNAME}
      - MONGO_PASSWORD=${MONGO_PASSWORD}
      - MONGO_DBNAME=${MONGO_DBNAME}
    ports:
      - "50050:50050"
    volumes:
      - ./api:/src/api
  #   links:
  #     - db
  # db:
  #   image: mongo:3.5.11
  #   ports:
  #     - "27017"
  #   container_name: aclu-db
  #   logging:
  #     driver: none

Comment out local db container in favor of hosted mongodb
Comment out local db container in favor of hosted mongodb
