Manifests/jenkins/jenkins.yml
kube-master@emrekirman.com 720db2c6dc jenkins configs added
2026-01-16 14:49:34 +00:00

36 lines
816 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

version: '3.8'
services:
jenkins:
image: jenkins/jenkins:lts
user: root # Docker soketine erişim için root yetkisi gerekir
ports:
- target: 8080
published: 8084
protocol: tcp
mode: host
- target: 50000
published: 50000
protocol: tcp
mode: host
volumes:
- jenkins_home:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock # Docker-in-Docker erişimi
- /usr/bin/docker:/usr/bin/docker # Host üzerindeki docker binary'sini paylaşır
networks:
- jenkins-net
deploy:
replicas: 1
placement:
constraints:
- node.labels.platform == dev
restart_policy:
condition: on-failure
networks:
jenkins-net:
driver: overlay
volumes:
jenkins_home: