-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a26c3bc
commit 8840c6b
Showing
4 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
version: "3.7" | ||
|
||
networks: | ||
web: | ||
external: true | ||
internal: | ||
external: false | ||
driver: bridge | ||
|
||
services: | ||
nginx: | ||
image: nginx:alpine | ||
restart: unless-stopped | ||
ports: | ||
- "80:80" | ||
volumes: | ||
- ./nginx.conf:/etc/nginx/nginx.conf | ||
networks: | ||
- web | ||
- internal | ||
|
||
badge: | ||
image: ghcr.io/xampprocky/tokei_rs | ||
environment: | ||
- RUST_LOG=debug | ||
networks: | ||
- internal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
events { worker_connections 1024; } | ||
|
||
http { | ||
|
||
upstream app_servers { # Create an upstream for the web servers | ||
server badge:8000; # the first server | ||
} | ||
|
||
server { | ||
listen 80; | ||
|
||
location / { | ||
proxy_pass http://app_servers; # load balance the traffic | ||
} | ||
} | ||
|
||
server { | ||
listen 443; | ||
|
||
location / { | ||
proxy_pass http://app_servers; # load balance the traffic | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters