version: '2'

volumes:
  goroot: {}

services:
  test:
    build: .
    command: go test -cover -v ./...
    volumes:
      - .:/go/src/github.com/pagarme/teleport/

  source:
    build: .
    command: bash -c "ASSET_FLAGS=-debug make asset; go run main.go -config source_config.yml"
    volumes:
      - .:/go/src/github.com/pagarme/teleport/
    ports:
      - 3000:3000

  target:
    build: .
    command: bash -c "ASSET_FLAGS=-debug make asset; go run main.go -config target_config.yml"
    volumes:
      - .:/go/src/github.com/pagarme/teleport/
    ports:
      - 3001:3001

  # Databases
  postgres:
    image: postgres:9.4
    volumes:
        - .:/code

version: '2'

volumes:
  goroot: {}

services:
  test:
    build: .
    command: bash -c "ASSET_FLAGS=-debug make asset; go test -cover -v ./..."
    volumes:
      - .:/go/src/github.com/pagarme/teleport/

  source:
    build: .
    command: bash -c "ASSET_FLAGS=-debug make asset; go run main.go -config source_config.yml"
    volumes:
      - .:/go/src/github.com/pagarme/teleport/
    ports:
      - 3000:3000

  target:
    build: .
    command: bash -c "ASSET_FLAGS=-debug make asset; go run main.go -config target_config.yml"
    volumes:
      - .:/go/src/github.com/pagarme/teleport/
    ports:
      - 3001:3001

  # Databases
  postgres:
    image: postgres:9.4
    volumes:
        - .:/code

Fix build of test image.
Fix build of test image.
