version: '3'
services:
  mongodb:
    image: mongo:latest
    environment:
      - MONGO_DATA_DIR=/data/db
      - MONGO_LOG_DIR=/dev/null
      - MONGODB_DBNAME=eae
    command: mongod --smallfiles --logpath=/dev/null # --quiet
    ports:
      - 27017:27017

  swift:
    image: bouncestorage/swift-aio
    ports:
      - 8080:8080

  tests:
    build:
        context: ..
        dockerfile: ./test/Dockerfile
    depends_on:
      - mongodb
      - swift
    ports:
        - 80:80

version: '3'
services:
  mongodb:
    image: mongo:latest
    environment:
      - MONGO_DATA_DIR=/data/db
      - MONGO_LOG_DIR=/dev/null
      - MONGODB_DBNAME=eae
    command: mongod --smallfiles --logpath=/dev/null # --quiet
    ports:
      - 27017:27017

  swift:
    image: bouncestorage/swift-aio
    ports:
      - 8080:8080

  tests:
    build:
        context: ..
        dockerfile: ./test/Dockerfile
    depends_on:
      - mongodb
      - swift
    links:
      - mongodb
      - swift
    ports:
        - 80:80

Test docker container links to mongdb and swift containers
Test docker container links to mongdb and swift containers
