Add initial Jenkins compose file
This commit is contained in:
commit
814d69548e
23
docker-compose.yml
Normal file
23
docker-compose.yml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
volumes:
|
||||||
|
data:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
traefik:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
services:
|
||||||
|
jenkins:
|
||||||
|
image: jenkins/jenkins:${VERSION:?}
|
||||||
|
container_name: ${NAME:-jenkins}
|
||||||
|
user: ${RUN_USER:-1000}:${RUN_GROUP:-1000}
|
||||||
|
ports:
|
||||||
|
- "50000:50000"
|
||||||
|
volumes:
|
||||||
|
- data:/var/jenkins_home
|
||||||
|
networks:
|
||||||
|
- traefik
|
||||||
|
labels:
|
||||||
|
- "traefik.http.routers.${ROUTER:-jenkins}.rule=Host(`${DOMAIN:-jenkins.local.krislamo.org}`)"
|
||||||
|
- "traefik.http.routers.${ROUTER:-jenkins}.entrypoints=web"
|
||||||
|
- "traefik.docker.network=traefik"
|
||||||
|
- "traefik.enable=true"
|
Loading…
x
Reference in New Issue
Block a user