Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <zoey@z0ey.de>
  • Loading branch information
Zoey2936 authored Mar 24, 2024
1 parent 708bb6c commit cbd7552
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,27 @@

## compose.yaml:
```yml
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 cbd7552

Please sign in to comment.