尝试gitea action
Some checks failed
Build and Push Docker Images / build-and-push (backend) (push) Failing after 1m4s
Build and Push Docker Images / build-and-push (frontend) (push) Has been cancelled

This commit is contained in:
小贺
2025-09-03 19:11:50 +08:00
parent a0e58acb46
commit f0e4249312
2 changed files with 67 additions and 27 deletions

View File

@@ -2,26 +2,22 @@ version: '3.8'
services:
frontend:
build:
context: ./front
dockerfile: dockerfile
container_name: my-frontend-web
image: gitea.zfxt.top/zfxt/frontend:latest
container_name: my-frontend-web
ports:
- "5555:5555" # 修改为5555端口映射
- "5555:5555"
depends_on:
- backend
networks:
- app-network
# 移除了build配置因为我们现在使用预构建的镜像
backend:
build:
context: ./backend
dockerfile: dockerfile
image: gitea.zfxt.top/zfxt/backend:latest
container_name: my-backend-api # 设置后端容器名
container_name: my-backend-api
networks:
- app-network
# 移除了build配置因为我们现在使用预构建的镜像
networks:
app-network: