August 2017
Beginner to intermediate
370 pages
8h 37m
English
Instead of setting up GitLab and Jenkins independently, you can run the following code using docker-compose up command and, both, Jenkins and GitLab will be installed and started in different containers. Jenkins can be accessed with a URL http://localhost:18080 and GitLab can be accessed using a URL http://localhost. The following code represents a Docker Compose file and can be saved as docker-compose.yml:
version: '2'networks: prodnetwork: driver: bridgeservices: jenkins: image: jenkins ports: - "18080:8080" networks: - prodnetwork volumes: - /var/run/docker.sock:/var/run/docker.sock - /usr/bin/docker:/usr/bin/docker - /opt/jenkins/:/var/lib/jenkins/ depends_on: - gitlab gitlab: image: ...
Read now
Unlock full access