Skip to content

Git repo with an example of how to deploy jenkins with nginx as reverse proxy with docker using docker-compose

Notifications You must be signed in to change notification settings

raanglada/jenkins

Repository files navigation

Introduction

In the following repo you will find a basic example of how to deploy jenkins with nginx as reverse proxy using docker with docker-compose

First

  • Install docker
  • Install docker-compose

Steps

  • Clone the git repo
$ git clone https://github.com/raanglada/jenkins.git
  • create the paths needed, you can change it in docker-compose.yaml file
$ mkdir -p /opt/jenkins/data
  • update the configurations for nginx, see nginx/nginx.conf file

  • build the image

$ docker-compose build
  • execute the compose
$ docker-compose up -d

After compose is up

Important

  • Remember this is a basic example, for production you need to apply several best practices not applied in this example like:
    • add a system service to start the containers when the machine start, if not, you will have to start it manually.
    • configure ssl certs.
    • automate regular backups of the relevant data of jenkins

About

Git repo with an example of how to deploy jenkins with nginx as reverse proxy with docker using docker-compose

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published