Skip to content

mihail204/docker-devops-school

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  1. Adding local registry and running it on 500 port (port 5000 already in use on my server):
    docker run -d -p 500:5000 --restart=always --name registry registry:2

  2. Cloning this repository and build images:
    git clone "https://github.com/mihail204/docker-devops-school.git"
    cd docker-devops-school
    cd Nginx_1
    docker build -t localhost:500/web_1:1.0 -t localhost:500/web_1:latest .
    cd ../Nginx_2
    docker build -t localhost:500/web_2:1.0 -t localhost:500/web_2:latest .

  3. Push images to local registry:
    docker push localhost:500/web_1:1.0
    docker push localhost:500/web_2:1.0

  4. Run images using docker-compose:
    cd ../
    docker-compose up

  5. Checking:
    Go to http://localhost:5555 for web_1 service and go to http://localhost:7777 for web_2 service

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published