version: '2'
services:

    sut:
      build:
        context: .
        dockerfile: ./Dockerfile
      command: run_tests
      environment:
        - PGUSERNAME=postgres
        - PGPASSWORD=postgres
        - PGDBNAME=arches
        - PGHOST=db
        - PGPORT=5432
        - ESHOST=elasticsearch
        - ESPORT=9200
        - COUCHDB_HOST=couchdb
        - COUCHDB_PORT=5984
        - COUCHDB_USER=admin
        - COUCHDB_PASS=password
        - DJANGO_MODE=PROD
        - DJANGO_DEBUG=False
        - DOMAIN_NAMES=localhost
        - TZ=PST
      depends_on:
        - db
        - elasticsearch

    db:
      container_name: db
      image: mdillon/postgis:9.6-alpine
      ports:
        - '5432:5432'
      environment:
        - POSTGRES_PASSWORD=postgres
        - TZ=PST

    elasticsearch:
      container_name: elasticsearch
      image: elasticsearch:5.2
      ports:
        - "9200:9200"
        - "9300:9300"
      environment:
        - TZ=PST

    couchdb:
      container_name: couchdb
      image: couchdb:2.1.1
      ports:
        - "5984:5984"
      environment:
        COUCHDB_USER: admin
        COUCHDB_PASSWORD: password

version: '2'
services:

    sut:
      build:
        context: .
        dockerfile: ./Dockerfile
      command: run_tests
      environment:
        - PGUSERNAME=postgres
        - PGPASSWORD=postgres
        - PGDBNAME=arches
        - PGHOST=db
        - PGPORT=5432
        - ESHOST=elasticsearch
        - ESPORT=9200
        - COUCHDB_HOST=couchdb
        - COUCHDB_PORT=5984
        - COUCHDB_USER=admin
        - COUCHDB_PASS=password
        - DJANGO_MODE=PROD
        - DJANGO_DEBUG=False
        - DOMAIN_NAMES=localhost
        - TZ=PST
      depends_on:
        - db
        - elasticsearch
        - couchdb

    db:
      container_name: db
      image: mdillon/postgis:9.6-alpine
      ports:
        - '5432:5432'
      environment:
        - POSTGRES_PASSWORD=postgres
        - TZ=PST

    elasticsearch:
      container_name: elasticsearch
      image: elasticsearch:5.2
      ports:
        - "9200:9200"
        - "9300:9300"
      environment:
        - TZ=PST

    couchdb:
      container_name: couchdb
      image: couchdb:2.1.1
      ports:
        - "5984:5984"
      environment:
        COUCHDB_USER: admin
        COUCHDB_PASSWORD: password

Update docker tests to depend on CouchDB
Update docker tests to depend on CouchDB