mirror of
https://github.com/CJackHwang/ds2api.git
synced 2026-05-04 08:25:26 +08:00
- 添加 docker/Dockerfile 多阶段构建(前端+后端) - 添加 docker-compose.yml 支持阿里云镜像部署 - 添加 .github/workflows/release.yml 自动发布到阿里云 - 添加 .dockerignore 优化构建 - 添加 VERSION 版本管理文件 - 添加 start.mjs 本地开发启动脚本
15 lines
441 B
YAML
15 lines
441 B
YAML
services:
|
|
ds2api:
|
|
image: crpi-cnazxqmg4avmg4fq.cn-beijing.personal.cr.aliyuncs.com/ronghuaxueleng/ds2api:latest
|
|
container_name: ds2api
|
|
restart: always
|
|
ports:
|
|
- "6011:5001"
|
|
volumes:
|
|
- ./config.json:/app/config.json # 配置文件
|
|
- ./.env:/app/.env # 环境变量
|
|
environment:
|
|
- TZ=Asia/Shanghai
|
|
- LOG_LEVEL=INFO
|
|
- DS2API_ADMIN_KEY=${DS2API_ADMIN_KEY:-ds2api}
|