version: '3'
services:
  dipex:
    image: amancevice/dipex
    build: .
    environment:
      AWS_ACCESS_KEY_ID:
      AWS_SECRET_ACCESS_KEY:
      TEST:
    volumes:
      - ~/.aws:/root/.aws:ro

version: '3.5'
services:
  dipex:
    image: amancevice/dipex
    build: .
    environment:
      AWS_ACCESS_KEY_ID:
      AWS_SECRET_ACCESS_KEY:
      TEST:
    volumes:
      - ~/.aws:/root/.aws:ro

Upgrade compose version on example
Upgrade compose version on example
