Newer
Older
jenkins-slave / docker-compose.yml
version: '2.1'

services:
    jenkins-slave1:
      image: pgollor/jenkins-slave-ssh
      mem_limit: 4g
      restart: always
      environment:
        - JENKINS_SLAVE_SSH_PUBKEY=${JENKINS_SLAVE_SSH_PUBKEY}
      volumes:
        - ./data/slave1/home:/home/jenkins/
        #- ./data/slave1/ssh/ssh_host_dsa_key:/etc/ssh/ssh_host_dsa_key
        #- ./data/slave1/ssh/ssh_host_rsa_key:/etc/ssh/ssh_host_rsa_key
      tmpfs:
        - /tmp:rw
        - /run:rw,size=64m
        - /vat/run:rw,size=64m
      ports:
        - "${JENKINS_SLAVE_SSH_BIND}:${JENKINS_SLAVE1_SSH_PORT}:22"

    jenkins-slave2:
      image: pgollor/jenkins-slave-arduino
      mem_limit: 4g
      restart: always
      environment:
        - JENKINS_SLAVE_SSH_PUBKEY=${JENKINS_SLAVE_SSH_PUBKEY}
      volumes:
        - ./data/slave2/home:/home/jenkins/
        #- ./data/slave2/ssh/ssh_host_dsa_key:/etc/ssh/ssh_host_dsa_key
        #- ./data/slave2/ssh/ssh_host_rsa_key:/etc/ssh/ssh_host_rsa_key
      tmpfs:
        - /tmp:rw
        - /run:rw,size=64m
        - /vat/run:rw,size=64m
      ports:
        - "${JENKINS_SLAVE_SSH_BIND}:${JENKINS_SLAVE2_SSH_PORT}:22"