Skip to main content

Jenkins - Open Source Automation Server

Summary

Jenkins is a open source automation server, acting as toolchain to build, test and deploy your software.

Installation via docker-compose behind traefik proxy

  jenkins:
    image: jenkins/jenkins:lts
    user: root
    privileged: true
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.jenkins.rule=Host(`jenkins.yourdomain.com`)"
      - "traefik.http.routers.jenkins.entrypoints=websecure"
      - "traefik.http.routers.jenkins.tls=true"
      - "traefik.http.services.jenkins.loadBalancer.server.port=8080"
      - "traefik.docker.network=traefik"
    networks:
      - traefik
    restart: always
    volumes:
      - /path/to/data:/var/jenkins_home
      - /var/run/docker.sock:/var/run/docker.sock
      - /usr/bin/docker:/usr/bin/docker