I am new in this of the docker-compose.yml configurations and I would like to help you first if the implementation of my file is fine, it is to create a node/slave
in jenkis through commands and as an aria to recover the .jar
file that generate, reading it and enter the value or path in the <secret>
field.
version: '3'
services:
jenkins_server:
image: "registry.jala.info/devops/jenkins/jenkins:2.107.3-alphine"
ports:
- "8080:8080"
- "5000:5000"
volumes:
- ./jenkins:/var/jenkins_home
jenkins_slave:
image: "registry.jala.info/devops/jenkins/jnlp-slave:3.27.1-alphine"
env_file:
- -url
- http://jenkins_server:5000
- -wordDir=/home/jenkins/agent
- <secret>
- <agent name>