Skip to content

topera/docker-compose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Topera's Hello World #017

Docker Compose

This hello world shows how to use Docker Compose. In this docker compose we are starting a Jenkins and a Sonar server at same time.

How to download this source code

  • Use the Clone or download button above the get the url of this repository
  • In IntelliJ IDEA: File → New → Project From Version Control -> Git -> put the url of this repository

How to test

  • Create a folder that Jenkins will use
    • $ mkdir ~/jenkins; chmod 777 ~/jenkins
  • Start dockers
    • $ sudo docker-compose up -d
      • The -d is from daemon, that is, to run in background
  • See logs
    • $ sudo docker-compose logs
  • Access Jenkins in http://localhost:8080
  • Access SonarQube in http://localhost:8081
  • To see docker containers running:
    • $ sudo docker ps
  • To stop all containers of this composer:
    • $ sudo docker-compose stop

Tech Stack

  • Intellij IDEA 2018.1
  • Docker version 18.03.1-ce

To take a look in other projects, please see https://github.com/topera/index

About

Hello World of a docker compose

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published