forked from mtusi2026/mtusi2026lab4
91 lines
2.0 KiB
JSON
91 lines
2.0 KiB
JSON
{
|
|
"project": "mtusi-lab4",
|
|
"services": {
|
|
"api": {
|
|
"image": "mtusi-messenger:lab4",
|
|
"cpus": 1,
|
|
"mem_limit": "536870912",
|
|
"memswap_limit": "536870912",
|
|
"user": "10001:10001",
|
|
"read_only": true,
|
|
"secrets": [
|
|
"database_url",
|
|
"cache_url",
|
|
"s3_api_access_key_id",
|
|
"s3_api_secret_access_key"
|
|
]
|
|
},
|
|
"bucket-init": {
|
|
"image": "mtusi-lab4-mc:2025-08-13",
|
|
"cpus": 0.5,
|
|
"mem_limit": "134217728",
|
|
"read_only": true,
|
|
"secrets": [
|
|
"s3_root_user",
|
|
"s3_root_password",
|
|
"s3_api_access_key_id",
|
|
"s3_api_secret_access_key",
|
|
"s3_reconciler_access_key_id",
|
|
"s3_reconciler_secret_access_key",
|
|
"s3_test_access_key_id",
|
|
"s3_test_secret_access_key"
|
|
]
|
|
},
|
|
"lb": {
|
|
"image": "haproxy:3.2.1-alpine",
|
|
"cpus": 0.5,
|
|
"mem_limit": "134217728",
|
|
"memswap_limit": "134217728",
|
|
"ports": [
|
|
{
|
|
"mode": "ingress",
|
|
"host_ip": "127.0.0.1",
|
|
"target": 8080,
|
|
"published": "8084",
|
|
"protocol": "tcp"
|
|
}
|
|
],
|
|
"read_only": true,
|
|
"secrets": []
|
|
},
|
|
"migrate": {
|
|
"image": "mtusi-messenger:lab4",
|
|
"cpus": 1,
|
|
"mem_limit": "536870912",
|
|
"memswap_limit": "536870912",
|
|
"user": "10001:10001",
|
|
"read_only": true,
|
|
"secrets": [
|
|
"database_url"
|
|
]
|
|
},
|
|
"postgres": {
|
|
"image": "postgres:18.3",
|
|
"cpus": 1,
|
|
"mem_limit": "805306368",
|
|
"memswap_limit": "805306368",
|
|
"secrets": [
|
|
"postgres_password"
|
|
]
|
|
},
|
|
"s3": {
|
|
"image": "mtusi-lab4-s3:2025-10-15",
|
|
"cpus": 1,
|
|
"mem_limit": "805306368",
|
|
"memswap_limit": "805306368",
|
|
"read_only": true,
|
|
"secrets": [
|
|
"s3_root_user",
|
|
"s3_root_password"
|
|
]
|
|
},
|
|
"valkey": {
|
|
"image": "valkey/valkey:8.1.3-alpine",
|
|
"cpus": 0.5,
|
|
"mem_limit": "134217728",
|
|
"memswap_limit": "134217728",
|
|
"secrets": []
|
|
}
|
|
}
|
|
}
|