-
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 -
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 . -
Push images to local registry:
docker push localhost:500/web_1:1.0
docker push localhost:500/web_2:1.0 -
Run images using docker-compose:
cd ../
docker-compose up -
Checking:
Go to http://localhost:5555 for web_1 service and go to http://localhost:7777 for web_2 service
-
Notifications
You must be signed in to change notification settings - Fork 0
mihail204/docker-devops-school
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published