Add staging Compose baseline and controlled port failure configuration
startup-product-gitea-ci/pipeline/pr-main This commit looks good
startup-product-gitea-ci/pipeline/pr-main This commit looks good
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"services": {
|
||||
"pricing": {
|
||||
"command": [
|
||||
"gunicorn",
|
||||
"--workers",
|
||||
"1",
|
||||
"--bind",
|
||||
"0.0.0.0:8001",
|
||||
"app:app"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"name": "chapter6-staging",
|
||||
"networks": {
|
||||
"jenkins_internal": {
|
||||
"name": "jenkins_jenkins_internal",
|
||||
"ipam": {},
|
||||
"external": true
|
||||
},
|
||||
"proxy_internal": {
|
||||
"external": true,
|
||||
"name": "gitea_gitea_internal"
|
||||
}
|
||||
},
|
||||
"services": {
|
||||
"pricing": {
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cpus": 0.5,
|
||||
"command": [
|
||||
"gunicorn",
|
||||
"--workers",
|
||||
"1",
|
||||
"--bind",
|
||||
"0.0.0.0:5000",
|
||||
"app:app"
|
||||
],
|
||||
"container_name": "startup-pricing-staging",
|
||||
"entrypoint": null,
|
||||
"healthcheck": {
|
||||
"test": [
|
||||
"CMD",
|
||||
"python",
|
||||
"-c",
|
||||
"import urllib.request,json; r=urllib.request.urlopen('http://127.0.0.1:5000/health',timeout=2); assert r.status == 200 and json.load(r)['status'] == 'healthy'"
|
||||
],
|
||||
"timeout": "3s",
|
||||
"interval": "3s",
|
||||
"retries": 3,
|
||||
"start_period": "5s"
|
||||
},
|
||||
"image": "git.nageshwaran.dev/ssw590-startup/startup-pricing@sha256:14d520f6fbe60c9cc5e661551a03e944de3a2ad777a64c316ec397ee765db22d",
|
||||
"mem_limit": "67108864",
|
||||
"memswap_limit": "134217728",
|
||||
"networks": {
|
||||
"jenkins_internal": null,
|
||||
"proxy_internal": null
|
||||
},
|
||||
"pids_limit": 64,
|
||||
"ports": [
|
||||
{
|
||||
"mode": "ingress",
|
||||
"host_ip": "127.0.0.1",
|
||||
"target": 5000,
|
||||
"published": "5062",
|
||||
"protocol": "tcp"
|
||||
}
|
||||
],
|
||||
"pull_policy": "never",
|
||||
"read_only": true,
|
||||
"restart": "no",
|
||||
"security_opt": [
|
||||
"no-new-privileges:true"
|
||||
],
|
||||
"tmpfs": [
|
||||
"/tmp:rw,nosuid,nodev,size=16m"
|
||||
],
|
||||
"user": "appuser"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user