168 lines
4.2 KiB
YAML
168 lines
4.2 KiB
YAML
version: 1
|
|
env: prod
|
|
project: chatapp
|
|
region: me-saudi-arabia
|
|
|
|
platform:
|
|
name: app-deploy-platform
|
|
http_port: "8080"
|
|
cors_origin: "http://localhost:18090"
|
|
|
|
database:
|
|
dsn: "host=postgres user=appdeploy password=appdeploy dbname=app_deploy_platform port=5432 sslmode=disable"
|
|
|
|
cache:
|
|
redis_addr: "redis:6379"
|
|
redis_password: ""
|
|
|
|
queue:
|
|
driver: "rocketmq"
|
|
rocketmq_nameserver: "namesrv:9876"
|
|
topic: "app-deploy-platform.deployments"
|
|
group: "app-deploy-platform.backend"
|
|
|
|
deploy:
|
|
healthcheck_interval: "10s"
|
|
script_work_dir: "/app/ops-scripts"
|
|
operator_script: "/app/ops-scripts/tencent_operator.py"
|
|
config_path: "/app/config/prod.yaml"
|
|
|
|
build:
|
|
script_work_dir: "/app/ops-scripts"
|
|
operator_script: "/app/ops-scripts/build_operator.py"
|
|
workspace_root: "/workspace/builds"
|
|
repo_search_roots:
|
|
- "/workspace/source/chat-app"
|
|
gitea_clone_prefix: "git@gitea.haiyihy.com:"
|
|
git_ssh_command: "ssh -o StrictHostKeyChecking=accept-new"
|
|
build_host: "build-node"
|
|
|
|
tencentcloud:
|
|
secret_id: "IKIDSlqhLlwsZ1FEy95mDRQIxOaXGqMejcJn"
|
|
secret_key: "HJExUowqVvAF7kAOOBj283mMmxsYzKRJ"
|
|
session_token: ""
|
|
|
|
cos:
|
|
region: me-saudi-arabia
|
|
bucket: "app-release-1417798587"
|
|
releases_prefix: "releases/prod"
|
|
state_prefix: "env/prod"
|
|
output_prefix: "tat-output/prod"
|
|
|
|
tat:
|
|
region: me-saudi-arabia
|
|
command_name: "deploy-release"
|
|
command_type: "SHELL"
|
|
working_directory: "/opt/release/bin"
|
|
script_path: "/opt/release/bin/deploy.sh"
|
|
timeout_seconds: 1800
|
|
execution_user: "root"
|
|
|
|
release:
|
|
order:
|
|
- user
|
|
- pay
|
|
- gateway
|
|
|
|
services:
|
|
user:
|
|
repo: "hy/chatappuser"
|
|
package_name: "user.tgz"
|
|
deploy_root: "/opt/apps/user"
|
|
unit_name: "chatapp-user.service"
|
|
health_url: "http://127.0.0.1:8081/ready"
|
|
http_port: 8081
|
|
grpc_port: 9001
|
|
rollout:
|
|
batch_size: 2
|
|
pause_seconds: 5
|
|
build:
|
|
repo_url: "git@gitea.haiyihy.com:hy/chatappuser.git"
|
|
repo_candidates: ["user", "User"]
|
|
default_branch: "main"
|
|
work_dir: "."
|
|
binary_name: "user"
|
|
build_target: "./cmd/user"
|
|
config_source: "config/prod.yaml"
|
|
build_command: ""
|
|
instances:
|
|
- instance_id: "ins-lmzfq1uo"
|
|
name: "user-1"
|
|
private_ip: "10.0.11.17"
|
|
- instance_id: "ins-660vsne0"
|
|
name: "user-2"
|
|
private_ip: "10.0.12.6"
|
|
|
|
pay:
|
|
repo: "hy/chatapppay"
|
|
package_name: "pay.tgz"
|
|
deploy_root: "/opt/apps/pay"
|
|
unit_name: "chatapp-pay.service"
|
|
health_url: "http://127.0.0.1:8082/ready"
|
|
http_port: 8082
|
|
grpc_port: 9002
|
|
rollout:
|
|
batch_size: 1
|
|
pause_seconds: 5
|
|
build:
|
|
repo_url: "git@gitea.haiyihy.com:hy/chatapppay.git"
|
|
repo_candidates: ["pay", "Pay"]
|
|
default_branch: "main"
|
|
work_dir: "."
|
|
binary_name: "pay"
|
|
build_target: "./cmd/pay"
|
|
config_source: "config/prod.yaml"
|
|
build_command: ""
|
|
instances:
|
|
- instance_id: "ins-hrl536js"
|
|
name: "pay-1"
|
|
private_ip: "10.0.22.13"
|
|
- instance_id: "ins-cpu02suc"
|
|
name: "pay-2"
|
|
private_ip: "10.0.21.8"
|
|
|
|
gateway:
|
|
repo: "hy/chatappgateway"
|
|
package_name: "gateway.tgz"
|
|
deploy_root: "/opt/apps/gateway"
|
|
unit_name: "chatapp-gateway.service"
|
|
health_url: "http://127.0.0.1:8080/ready"
|
|
http_port: 8080
|
|
rollout:
|
|
batch_size: 1
|
|
drain_seconds: 30
|
|
pause_seconds: 5
|
|
build:
|
|
repo_url: "git@gitea.haiyihy.com:hy/chatappgateway.git"
|
|
repo_candidates: ["gateway", "GateWay", "Gateway"]
|
|
default_branch: "main"
|
|
work_dir: "."
|
|
binary_name: "gateway"
|
|
build_target: "./cmd/gateway"
|
|
config_source: "config/prod.yaml"
|
|
build_command: ""
|
|
instances:
|
|
- instance_id: "ins-cj7jumy6"
|
|
name: "gateway-1"
|
|
private_ip: "10.0.1.10"
|
|
- instance_id: "ins-h7lkhydm"
|
|
name: "gateway-2"
|
|
private_ip: "10.0.2.11"
|
|
clb:
|
|
load_balancer_id: "lb-9rpsgcle"
|
|
listener_id: "lbl-kuuhsqq2"
|
|
location_id: ""
|
|
domain: ""
|
|
url: ""
|
|
backend_port: 8080
|
|
original_weight: 10
|
|
targets:
|
|
- instance_id: "ins-cj7jumy6"
|
|
private_ip: "10.0.1.10"
|
|
port: 8080
|
|
weight: 10
|
|
- instance_id: "ins-h7lkhydm"
|
|
private_ip: "10.0.2.11"
|
|
port: 8080
|
|
weight: 10
|