Compare commits
No commits in common. "cd46b3eb529ec2383e2d3715c16063d164cfc524" and "93c3dcbb6d2230bea568e9a63e83c890bf734ebf" have entirely different histories.
cd46b3eb52
...
93c3dcbb6d
@ -6,9 +6,4 @@ DB_USER="dbuser"
|
||||
## Database Port
|
||||
DB_PORT="testdb"
|
||||
## Database name
|
||||
DB_NAME="testdb"
|
||||
|
||||
# Port Mapping
|
||||
FRONTEND_PORT="30381"
|
||||
BACKEND_PORT="30382"
|
||||
HAPROXY_PORT="80"
|
||||
DB_NAME="testdb"
|
@ -1,5 +0,0 @@
|
||||
# HAPROXY
|
||||
The Haproxy is used to route the requests to the diffrent backends & location
|
||||
--> Only for local deployment
|
||||
--> On kubernetes you can use an ingress for this
|
||||
|
@ -1,26 +0,0 @@
|
||||
global
|
||||
stats socket /var/run/api.sock user haproxy group haproxy mode 660 level admin expose-fd listeners
|
||||
log stdout format raw local0 info
|
||||
|
||||
defaults
|
||||
mode http
|
||||
timeout client 10s
|
||||
timeout connect 5s
|
||||
timeout server 10s
|
||||
timeout http-request 10s
|
||||
log global
|
||||
|
||||
frontend stats
|
||||
bind *:8404
|
||||
stats enable
|
||||
stats uri /
|
||||
stats refresh 10s
|
||||
|
||||
frontend myfrontend
|
||||
bind :80
|
||||
default_backend webservers
|
||||
|
||||
backend webservers
|
||||
server s1 web1:8080 check
|
||||
server s2 web2:8080 check
|
||||
server s3 web3:8080 check
|
@ -1,8 +0,0 @@
|
||||
version: 3
|
||||
services:
|
||||
haproxy:
|
||||
image: haproxy:alpine
|
||||
ports:
|
||||
- "80:80"
|
||||
voluems:
|
||||
- ./config/haproxy.cfg:/usr/local/etc/haproxy:ro
|
@ -1,14 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Variables
|
||||
|
||||
# Funcitons
|
||||
function loadconfig {
|
||||
source config/public
|
||||
source config/private
|
||||
}
|
||||
|
||||
# Main Script
|
||||
loadconfig
|
||||
|
||||
echo $BACKEND_PORT
|
Loading…
Reference in New Issue
Block a user