From aaa6281b55ec0219b636709f3c919d16309f1064 Mon Sep 17 00:00:00 2001 From: Zoey Date: Sat, 16 Mar 2024 20:31:52 +0100 Subject: [PATCH] Update compose.yaml Signed-off-by: Zoey --- compose.yaml | 38 ++++++++++++++++++-------------------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/compose.yaml b/compose.yaml index 7416af4..aaa465f 100644 --- a/compose.yaml +++ b/compose.yaml @@ -1,25 +1,23 @@ -version: "3" services: - jenkins: - container_name: jenkins - image: jenkins/jenkins:alpine - restart: always - environment: - - "TZ=Europe/Berlin" - - "JAVA_OPTS=-Xmx256M -Xms256M" - ports: - - "127.0.0.1:8081:8080" - volumes: - - "/opt/jenkins:/var/jenkins_home" - links: - - jenkins-agent - + jenkins: + container_name: jenkins + image: jenkins/jenkins:alpine-jdk21 + restart: always + environment: + - "TZ=Europe/Berlin" + - "JAVA_OPTS=-Xmx256M -Xms256M" + ports: + - "127.0.0.1:8081:8080" + volumes: + - "/opt/jenkins:/var/jenkins_home" + links: + - jenkins-agent jenkins-agent: - container_name: jenkins-agent - image: zoeyvid/jenkins-ssh-agent - restart: always - environment: + container_name: jenkins-agent + image: zoeyvid/jenkins-ssh-agent + restart: always + environment: - "TZ=Europe/Berlin" - "JENKINS_AGENT_SSH_PUBKEY=ssh-rsa ABCDEFGHIJKLMNOPQRSTUVWXYZ" -# volumes: +# volumes: # - "/var/run/docker.sock:/var/run/docker.sock:ro"