Added changed files
This commit is contained in:
185
smarthost-proxy.json
Normal file
185
smarthost-proxy.json
Normal file
@@ -0,0 +1,185 @@
|
||||
{
|
||||
"main": {
|
||||
"SERVICE_NAME": "smarthost-proxy",
|
||||
"DOMAIN": "null"
|
||||
},
|
||||
"networks": [
|
||||
{
|
||||
"NAME": "smarthost-loadbalancer",
|
||||
"DRIVER": "bridge",
|
||||
"SUBNET": "172.18.103.0/24",
|
||||
"RANGE": "172.18.103.0/24",
|
||||
"GATEWAY": "172.18.103.1"
|
||||
},
|
||||
{
|
||||
"NAME": "smarthost_backend-1",
|
||||
"DRIVER": "bridge",
|
||||
"SUBNET": "172.18.104.0/24",
|
||||
"RANGE": "172.18.104.0/24",
|
||||
"GATEWAY": "172.18.104.1"
|
||||
},
|
||||
{
|
||||
"NAME": "smarthost_backend-2",
|
||||
"DRIVER": "bridge",
|
||||
"SUBNET": "172.18.105.0/24",
|
||||
"RANGE": "172.18.105.0/24",
|
||||
"GATEWAY": "172.18.105.1"
|
||||
}
|
||||
],
|
||||
"containers": [
|
||||
{
|
||||
"IMAGE": "registry.format.hu/haproxy:2.5.4",
|
||||
"NAME": "loadbalancer-27dhuwth",
|
||||
"ROLES": "smarthost-frontend-proxy",
|
||||
"MEMORY": "128M",
|
||||
"IP": "172.18.103.2",
|
||||
"NETWORK": "smarthost-loadbalancer",
|
||||
"DNS": [ "proxy_dns" ],
|
||||
"ENVS": [
|
||||
{
|
||||
"NAME": "letsencrypt",
|
||||
"VALUE": "letsencrypt"
|
||||
},
|
||||
{
|
||||
"NAME": "backend1",
|
||||
"VALUE": "172.18.104.2"
|
||||
},
|
||||
{
|
||||
"NAME": "backend2",
|
||||
"VALUE": "172.18.105.2"
|
||||
}
|
||||
],
|
||||
"READYNESS": [
|
||||
{"tcp": "80"},
|
||||
{"HTTP": "8080"},
|
||||
{"EXEC": "/ready.sh"}
|
||||
],
|
||||
"PORTS": [
|
||||
{
|
||||
"SOURCE": "null",
|
||||
"DEST": "80",
|
||||
"TYPE": "tcp"
|
||||
},
|
||||
{
|
||||
"SOURCE": "null",
|
||||
"DEST": "443",
|
||||
"TYPE": "tcp"
|
||||
}
|
||||
],
|
||||
"VOLUMES": [
|
||||
{
|
||||
"SOURCE": "/etc/system/log/smarthost-proxy/loadbalancer",
|
||||
"DEST": "/var/log/haproxy",
|
||||
"TYPE": "rw"
|
||||
}
|
||||
],
|
||||
"READYNESS": [
|
||||
{"tcp": "80"},
|
||||
{"HTTP": "8080"},
|
||||
{"EXEC": "/ready.sh"}
|
||||
],
|
||||
"EXTRA": "--label ROLES=loadbalancer" ,
|
||||
"DEPEND": [ "proxy-dns" ],
|
||||
"START_ON_BOOT": "true",
|
||||
"CMD": "null",
|
||||
"PRE_START": [ "firewall_dns-behbeq37th" ],
|
||||
"POST_START": [ "firewall-smarhost-loadbalancer" ]
|
||||
},
|
||||
{
|
||||
"IMAGE": "registry.format.hu/nginx:1.21",
|
||||
"NAME": "backend-zc93hhth",
|
||||
"ROLES": "smarthost-backend-proxy",
|
||||
"MEMORY": "64M",
|
||||
"IP": "172.18.104.2",
|
||||
"NETWORK": "smarthost_backend-1",
|
||||
"PORTS": [
|
||||
{
|
||||
"SOURCE": "null",
|
||||
"DEST": "80",
|
||||
"TYPE": "tcp"
|
||||
},
|
||||
{
|
||||
"SOURCE": "null",
|
||||
"DEST": "443",
|
||||
"TYPE": "tcp"
|
||||
}
|
||||
],
|
||||
"VOLUMES": [
|
||||
{
|
||||
"SOURCE": "/etc/system/config/smarthost-proxy/nginx",
|
||||
"DEST": "/etc/nginx/conf.d",
|
||||
"TYPE": "ro"
|
||||
},
|
||||
{
|
||||
"SOURCE": "/etc/ssl/keys",
|
||||
"DEST": "/etc/ssl/keys",
|
||||
"TYPE": "ro"
|
||||
},
|
||||
{
|
||||
"SOURCE": "/etc/system/log/smarthost-proxy/backend-1",
|
||||
"DEST": "/var/log/nginx",
|
||||
"TYPE": "rw"
|
||||
}
|
||||
],
|
||||
"READYNESS": [
|
||||
{"tcp": "80"},
|
||||
{"HTTP": "8080"},
|
||||
{"EXEC": "/ready.sh"}
|
||||
],
|
||||
"EXTRA": "null",
|
||||
"DEPEND": "null",
|
||||
"START_ON_BOOT": "true",
|
||||
"CMD": "null",
|
||||
"PRE_START": "null",
|
||||
"POST_START": [ "firewall_backend1-zc93hhth" ]
|
||||
},
|
||||
{
|
||||
"IMAGE": "registry.format.hu/nginx:1.21",
|
||||
"NAME": "backend-g4rg38th",
|
||||
"ROLES": "smarthost-backend-proxy",
|
||||
"MEMORY": "64M",
|
||||
"IP": "172.18.105.2",
|
||||
"NETWORK": "smarthost_backend-2",
|
||||
"PORTS": [
|
||||
{
|
||||
"SOURCE": "null",
|
||||
"DEST": "80",
|
||||
"TYPE": "tcp"
|
||||
},
|
||||
{
|
||||
"SOURCE": "null",
|
||||
"DEST": "443",
|
||||
"TYPE": "tcp"
|
||||
}
|
||||
],
|
||||
"VOLUMES": [
|
||||
{
|
||||
"SOURCE": "/etc/system/config/smarthost-proxy/nginx",
|
||||
"DEST": "/etc/nginx/conf.d",
|
||||
"TYPE": "ro"
|
||||
},
|
||||
{
|
||||
"SOURCE": "/etc/ssl/keys",
|
||||
"DEST": "/etc/ssl/keys",
|
||||
"TYPE": "ro"
|
||||
},
|
||||
{
|
||||
"SOURCE": "/etc/system/log/smarthost-proxy/backend-2",
|
||||
"DEST": "/var/log/nginx",
|
||||
"TYPE": "rw"
|
||||
}
|
||||
],
|
||||
"READYNESS": [
|
||||
{"tcp": "80"},
|
||||
{"HTTP": "8080"},
|
||||
{"EXEC": "/ready.sh"}
|
||||
],
|
||||
"EXTRA": "null",
|
||||
"DEPEND": "null",
|
||||
"START_ON_BOOT": "true",
|
||||
"CMD": "null",
|
||||
"PRE_START": "null",
|
||||
"POST_START": [ "firewall_backend2-g4rg38th" ]
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user