version: '2'
services:
  db:
    environment:
      POSTGRES_DB: dfs
    expose:
      - 5432
    image: postgres:9.6.1-alpine
  auth-service:
    command: /usr/local/bin/wait-for-it.sh db:5432 --strict -- /usr/local/bin/auth-service
    depends_on:
      - db
    image: houli/auth-service
    ports:
      - "8080:8080"
  file-service:
    command: /usr/local/bin/wait-for-it.sh db:5432 --strict -- /usr/local/bin/file-service
    depends_on:
      - db
    image: houli/file-service
    ports:
      - "8081:8081"

version: '2'
services:
  db:
    environment:
      POSTGRES_DB: dfs
    expose:
      - 5432
    image: postgres:9.6.1-alpine
  auth-service:
    command: /usr/local/bin/wait-for-it.sh db:5432 --strict -- /usr/local/bin/auth-service
    depends_on:
      - db
    image: houli/auth-service
    ports:
      - "8080:8080"
  file-service:
    command: /usr/local/bin/wait-for-it.sh db:5432 --strict -- /usr/local/bin/file-service
    depends_on:
      - db
    image: houli/file-service
    ports:
      - "8081:8081"
  migrator:
    command: /usr/local/bin/wait-for-it.sh db:5432 --strict -- /usr/local/bin/migrator
    depends_on:
      - db
    expose:
      - 8000
    image: houli/migrator

Add migrator service to Docker compose
Add migrator service to Docker compose
