# See also:
# - Compose file reference: https://docs.docker.com/compose/compose-file/

version: '2'

services:
  myjenkins:
    # image: jenkins:latest
    build: myjenkins
    ports:
      - "9080:8080"
      - "51000:50000"
    # tty: true
    # privileged: true
    network_mode: "bridge"
    volumes:
      - jenkins_home:/var/jenkins_home
      - /var/run/docker.sock:/var/run/docker.sock

  # build-yocto-slave:
  #   image: gmacario/build-yocto:latest
  #   user: jenkins
  #   entrypoint: ""
  #   command: "java -jar /usr/share/jenkins/slave.jar -jnlpUrl http://master:8080/computer/build-yocto-slave/slave-agent.jnlp"
  #   links:
  #     - myjenkins:master
  #   volumes:
  #     - data:/home/jenkins

  nexus:
    image: sonatype/nexus3:latest
    ports:
      - "9081:8081"
    network_mode: "bridge"

volumes:
  jenkins_home:
#   data:
#   downloads:
#   sstate-cache:

# EOF

# easy-jenkins docker-compose.yml
#
# See also:
# - Compose file reference: https://docs.docker.com/compose/compose-file/

version: '3'

services:
  myjenkins:
    # image: jenkins:latest
    build: myjenkins
    ports:
      - "9080:8080"
      - "51000:50000"
    # tty: true
    # privileged: true
    network_mode: "bridge"
    volumes:
      - jenkins_home:/var/jenkins_home
      - /var/run/docker.sock:/var/run/docker.sock

  # build-yocto-slave:
  #   image: gmacario/build-yocto:latest
  #   user: jenkins
  #   entrypoint: ""
  #   command: "java -jar /usr/share/jenkins/slave.jar -jnlpUrl http://master:8080/computer/build-yocto-slave/slave-agent.jnlp"
  #   links:
  #     - myjenkins:master
  #   volumes:
  #     - data:/home/jenkins

  nexus:
    image: sonatype/nexus3:latest
    ports:
      - "9081:8081"
    network_mode: "bridge"

volumes:
  jenkins_home:
#   data:
#   downloads:
#   sstate-cache:

# EOF

Switch to Compose file version 3
Switch to Compose file version 3

Signed-off-by: Gianpaolo Macario <0ff0c2e9d5bf20f5f69c7733a6cf655a6d84fcfa@solarma.it>
