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"