Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
Load-Balancer-Docker
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mohammad.salama
Load-Balancer-Docker
Commits
c91bc353
Commit
c91bc353
authored
Mar 13, 2024
by
mohammad.salama
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto networking
parent
10c9dab3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
haproxy.cfg
Load-Balancer/haproxy.cfg
+6
-4
docker-compose.yml
docker-compose.yml
+10
-2
No files found.
Load-Balancer/haproxy.cfg
View file @
c91bc353
global
global
maxconn 4096
maxconn 4096
log stdout format raw local0
defaults
defaults
log global
mode http
mode http
timeout connect 5000ms
timeout connect 5000ms
timeout client 50000ms
timeout client 50000ms
...
@@ -9,9 +11,9 @@ defaults
...
@@ -9,9 +11,9 @@ defaults
frontend main
frontend main
bind *:8080
bind *:8080
default_backend backend
default_backend
greeter_
backend
backend backend
backend
greeter_
backend
balance roundrobin
balance roundrobin
server greeter-1
172.19.0.3
:8001
server greeter-1
first-greeting
:8001
server greeter-2
172.19.0.2
:8002
server greeter-2
second-greeting
:8002
docker-compose.yml
View file @
c91bc353
...
@@ -6,11 +6,15 @@ services:
...
@@ -6,11 +6,15 @@ services:
image
:
first-greeter
image
:
first-greeter
ports
:
ports
:
-
"
8001:8001"
-
"
8001:8001"
networks
:
-
greeting_network
second-greeting
:
second-greeting
:
image
:
second-greeter
image
:
second-greeter
ports
:
ports
:
-
"
8002:8002"
-
"
8002:8002"
networks
:
-
greeting_network
load-balancer
:
load-balancer
:
image
:
haproxy
image
:
haproxy
...
@@ -21,4 +25,8 @@ services:
...
@@ -21,4 +25,8 @@ services:
depends_on
:
depends_on
:
-
first-greeting
-
first-greeting
-
second-greeting
-
second-greeting
networks
:
\ No newline at end of file
-
greeting_network
networks
:
greeting_network
:
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment