代码拉取完成,页面将自动刷新
# aliyun serverless 配置
edition: 2024.05
name: taotao-cloud-microservice
access: default
vars:
region: cn-hangzhou
# Define the Serverless-Devs services. Each service is a FC function.
services:
mall-admin:
component: devsapp/fc
props:
region: ${vars.region}
# Define the AlibabaCloud FunctionCompute Service.
service:
name: taotao-cloud-file
internetAccess: true
# Let the serverless-devs create a shared logstore automatically.
# All FC services share the same logstore.
logConfig: auto
# Define the AlibabaCloud FunctionCompute Function.
function:
name: taotao-cloud-file
description: The mall project based on SpringBoot+MyBatis.
caPort: 8080
memorySize: 3072
handler: not-used
timeout: 60
runtime: custom-container
customContainerConfig:
image: registry.${vars.region}.aliyuncs.com/quanxi-hryang/mall-admin:1.0-SNAPSHOT
# Enable the image acceleration.
accelerationType: Default
triggers:
- name: httpTrigger
type: http
config:
authType: anonymous
methods:
- GET
- POST
customDomains:
- domainName: auto
protocol: HTTP
routeConfigs:
- path: /*
serviceName: mall-admin
functionName: mall-admin
methods:
- GET
- POST
mall-portal:
component: devsapp/fc
props:
region: ${vars.region}
# Define the AlibabaCloud FunctionCompute Service.
service:
name: mall-portal
internetAccess: true
# Let the serverless-devs create a shared logstore automatically.
# All FC services share the same logstore.
logConfig: auto
# Define the AlibabaCloud FunctionCompute Function.
function:
name: mall-portal
description: The mall project based on SpringBoot+MyBatis
caPort: 8085
memorySize: 3072
handler: not-used
timeout: 60
runtime: custom-container
customContainerConfig:
image: registry.${vars.region}.aliyuncs.com/quanxi-hryang/mall-portal:1.0-SNAPSHOT
# Enable the image acceleration.
accelerationType: Default
triggers:
- name: httpTrigger
type: http
config:
authType: anonymous
methods:
- GET
- POST
customDomains:
- domainName: auto
protocol: HTTP
routeConfigs:
- path: /*
serviceName: mall-portal
functionName: mall-portal
methods:
- GET
- POST
mall-search:
component: devsapp/fc
props:
region: ${vars.region}
# Define the AlibabaCloud FunctionCompute Service.
service:
name: mall-search
internetAccess: true
# Let the serverless-devs create a shared logstore automatically.
# All FC services share the same logstore.
logConfig: auto
# Define the AlibabaCloud FunctionCompute Function.
function:
name: mall-search
description: The mall project based on SpringBoot+MyBati
caPort: 8081
memorySize: 3072
handler: not-used
timeout: 60
runtime: custom-container
customContainerConfig:
image: registry.${vars.region}.aliyuncs.com/quanxi-hryang/mall-search:1.0-SNAPSHOT
# Enable the image acceleration.
accelerationType: Default
triggers:
- name: httpTrigger
type: http
config:
authType: anonymous
methods:
- GET
- POST
customDomains:
- domainName: auto
protocol: HTTP
routeConfigs:
- path: /*
serviceName: mall-search
functionName: mall-search
methods:
- GET
- POST
# https://github.com/devsapp/fc
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。