mirror of
https://github.com/runyanjake/olomana.git
synced 2025-10-05 05:37:29 -07:00
Added jenkins
This commit is contained in:
parent
01c3320ea5
commit
f3219d4a5e
7
jenkins/README.md
Normal file
7
jenkins/README.md
Normal 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`
|
27
jenkins/docker-compose.yml
Normal file
27
jenkins/docker-compose.yml
Normal 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"
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user