Commit 7606c87d authored by Thibault's avatar Thibault
Browse files

Docker compose fonctionnel (Jenkins, Registry)

parent 2e0416c1
version: "3"
networks:
jenkins:
driver: bridge
services:
dind:
container_name: jenkins-docker
image: docker:dind
network_mode: "bridge"
networks:
jenkins:
aliases:
- docker
privileged: true
ports:
- 2376:2376
expose:
- "2376"
volumes:
- ./jenkins-docker-certs:/certs/client
- ./jenkins-data:/var/jenkins_home
......@@ -15,7 +24,14 @@ services:
jenkins-blueocean:
container_name: jenkins-blueocean
image: myjenkins-blueocean:1.1
network_mode: "bridge"
networks:
- jenkins
depends_on:
- dind
environment:
- DOCKER_HOST=tcp://docker:2376
- DOCKER_CERT_PATH=/certs/client
- DOCKER_TLS_VERIFY=1
ports:
- 8080:8080
- 50000:50000
......@@ -26,7 +42,8 @@ services:
sonatype-nexus3:
container_name: registry-nexus
image: sonatype/nexus3:latest
network_mode: "bridge"
networks:
- jenkins
ports:
- 8081:8081
- 8082:8082
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment