Skip to content

Commit

Permalink
Update compose.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <zoey@z0ey.de>
  • Loading branch information
Zoey2936 authored Mar 16, 2024
1 parent 56f6453 commit aaa6281
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit aaa6281

Please sign in to comment.