(refactor) Remove env files and scripts, update config files
This commit is contained in:
24
apps/pro-api/0.1.0/data.yml
Normal file
24
apps/pro-api/0.1.0/data.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: ./config
|
||||
edit: true
|
||||
envKey: LOCAL_CONFIG_PATH
|
||||
labelEn: local config file path
|
||||
labelZh: 本地配置文件地址
|
||||
required: true
|
||||
type: text
|
||||
- default: ./data
|
||||
edit: true
|
||||
envKey: DATA_PATH
|
||||
labelEn: uni-api data path
|
||||
labelZh: uni-api数据存储路径
|
||||
required: true
|
||||
type: text
|
||||
- default: 8000
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
21
apps/pro-api/0.1.0/docker-compose.yml
Normal file
21
apps/pro-api/0.1.0/docker-compose.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
services:
|
||||
pro-api:
|
||||
image: duolabmeng/pro-api:v0.1.0
|
||||
container_name: ${CONTAINER_NAME}
|
||||
restart: always
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:8000
|
||||
volumes:
|
||||
- "${DATA_PATH}:/app/data:rw"
|
||||
- "${LOCAL_CONFIG_PATH}:/app/api.yaml"
|
||||
environment:
|
||||
- PYTHONUNBUFFERED=1
|
||||
networks:
|
||||
- 1panel-network
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
|
||||
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
Reference in New Issue
Block a user