Skip to content

Commit

Permalink
Made change to run only one server
Browse files Browse the repository at this point in the history
...
  • Loading branch information
MementoMori11723 committed Dec 22, 2024
1 parent 3357e2e commit 9f8be97
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ services:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- c-http-server-1
- c-http-server-2
- c-http-server-3
# - c-http-server-2
# - c-http-server-3
deploy:
resources:
limits:
Expand All @@ -37,14 +37,14 @@ services:
c-http-server-1:
<<: *http-server
container_name: c-http-server-1

c-http-server-2:
<<: *http-server
container_name: c-http-server-2

c-http-server-3:
<<: *http-server
container_name: c-http-server-3
#
# c-http-server-2:
# <<: *http-server
# container_name: c-http-server-2
#
# c-http-server-3:
# <<: *http-server
# container_name: c-http-server-3

networks:
c-http-net:
Expand Down
4 changes: 2 additions & 2 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ events {
http {
upstream backend {
server c-http-server-1:8000;
server c-http-server-2:8000;
server c-http-server-3:8000;
# server c-http-server-2:8000;
# server c-http-server-3:8000;
}

server {
Expand Down

0 comments on commit 9f8be97

Please sign in to comment.