Files
CICD_Learning/docker-compose.yml
小贺 f0e4249312
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
尝试gitea action
2025-09-03 19:11:50 +08:00

24 lines
533 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

version: '3.8'
services:
frontend:
image: gitea.zfxt.top/zfxt/frontend:latest
container_name: my-frontend-web
ports:
- "5555:5555"
depends_on:
- backend
networks:
- app-network
# 移除了build配置因为我们现在使用预构建的镜像
backend:
image: gitea.zfxt.top/zfxt/backend:latest
container_name: my-backend-api
networks:
- app-network
# 移除了build配置因为我们现在使用预构建的镜像
networks:
app-network:
driver: bridge