Added jenkins

This commit is contained in:
olomana 2023-02-10 22:33:33 +00:00
parent 01c3320ea5
commit f3219d4a5e
2 changed files with 34 additions and 0 deletions

7
jenkins/README.md Normal file
View File

@ -0,0 +1,7 @@
# Jenkins
A Jenkins instance for whitney. Sort of an open ended project, figure that i'll find something to do with it once it's set up.
Followed instructions at `https://dev.to/andresfmoya/install-jenkins-using-docker-compose-4cab`
Note container name is different so actual command to get one time admin pw, etc is `docker exec jenkins cat /var/jenkins_home/secrets/initialAdminPassword`

View File

@ -0,0 +1,27 @@
version: '3.7'
networks:
traefik_traefik-network:
external: true
services:
jenkins:
image: jenkins/jenkins:lts
container_name: jenkins
restart: always
networks:
- traefik_traefik-network
privileged: true
user: root
ports:
- 8082:8080
- 50000:50000
volumes:
- /data/jenkins:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
- /usr/local/bin/docker:/usr/local/bin/docker
labels:
- "traefik.enable=true"
- "traefik.http.routers.jenkins.rule=Host(`jenkins.whitney.rip`)"
- "traefik.http.routers.jenkins.entrypoints=web"