- Docker: 18.09.1
- Docker Compose: 1.23.2
- Docker Swarm enabled (docker swarm init)
- Docker APP
NOTE: docker-app will be available in main Docker bundle in future release.
127.0.0.1 test.company.com
docker swarm init
docker run -d -p 5000:5000 --name registry registry:2
- Jenkins
- Ports: 8080, 443, 50000
- Nexus
- Ports: 8081
- Sonarqube
- Ports: 9000
- Postgres
- Ports: 5432
- Traefik
- Ports: 8080, 443
docker build -t localhost:5000/jenkins:latest jenkins/
docker push localhost:5000/jenkins:latest
docker build -t localhost:5000/jenkinsagent:latest jenkinsagent/
docker push localhost:5000/jenkinsagent:latest
echo "admin" | docker secret create jenkins_username -
echo "admin" | docker secret create jenkins_password -
echo "admin" | docker secret create pg_password -
NOTE: PLEASE DO NOT USE ADMIN/ADMIN as your credentials.
docker-app deploy
docker service ls
open http://test.company.com:8080/
open http://test.company.com/jenkins/
open http://test.company.com/nexus
NOTE: Default credential admin/admin123.
open http://test.company.com/sonarqube/