Launch Jenkins using Docker Compose

To launch a Jenkins server in a Docker container using Docker Compose, the following docker-compose.yml defines a Jenkins server with a persistent job configuration.

And start then start it:

You should now have a Jenkins running on localhost:8080.

If you need a bash to change any configuration, start it like this: