version: '3.4'
services:
  jenkins-dind:
    build:
      context: test/jenkins-dind
    ports: 
      - 8080:8080
    volumes:
      - jpl-dind-cache:/var/lib/docker
      - ./:/opt/jpl-source
    privileged: true
  jenkins-agent1:
    image: "jenkins/jnlp-slave"
    entrypoint: ""
    command: 'bash -c "tail -f /var/log/*.log"'
    volumes:
      - ./:/opt/jpl-source
  jenkins-agent2:
    image: "jenkins/jnlp-slave"
    entrypoint: ""
    command: 'bash -c "tail -f /var/log/*.log"'
    volumes:
      - ./:/opt/jpl-source
volumes:
  jpl-dind-cache:
  jpl-jenkins-dind-home:

version: '3.4'
services:
  jenkins-dind:
    build:
      context: test/jenkins-dind
    ports: 
      - "8080"
    volumes:
      - jpl-dind-cache:/var/lib/docker
      - ./:/opt/jpl-source
    privileged: true
  jenkins-agent1:
    image: "jenkins/jnlp-slave"
    entrypoint: ""
    command: 'bash -c "tail -f /var/log/*.log"'
    volumes:
      - ./:/opt/jpl-source
  jenkins-agent2:
    image: "jenkins/jnlp-slave"
    entrypoint: ""
    command: 'bash -c "tail -f /var/log/*.log"'
    volumes:
      - ./:/opt/jpl-source
volumes:
  jpl-dind-cache:
  jpl-jenkins-dind-home:

Use random port for jenkins-dind service instead 8080
Update: Use random port for jenkins-dind service instead 8080
