1 Star 0 Fork 0

binyu/courseMgrFastAPI

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose.yml 701 Bytes
一键复制 编辑 原始数据 按行查看 历史
binyu 提交于 2024-10-02 15:36 . 修改docker打包配置
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
env_file:
- .env
container_name: courseMgrFastAPI
restart: always
ports:
- "10088:8888"
expose:
- "10088"
environment:
TZ: "Asia/Shanghai"
frontend:
build:
# 上下文管理, 执行frontend 下的 Dockerfile
context: ./frontend
dockerfile: Dockerfile
# 容器名称
container_name: courseMgrWeb
restart: always
ports:
- "10089:80"
expose:
- "10089"
environment:
TZ: "Asia/Shanghai"
depends_on: # 依赖于backend容器,被依赖容器启动后此web容器才可启动
- backend
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/liubinyu19930105/course-mgr-fast-api.git
git@gitee.com:liubinyu19930105/course-mgr-fast-api.git
liubinyu19930105
course-mgr-fast-api
courseMgrFastAPI
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385