Files
CICD_Learning/docker-compose.yml
zfxt-ubuntu c3648d1102
All checks were successful
Build and Push Docker Images / build-and-push (backend) (push) Successful in 17s
Build and Push Docker Images / build-and-push (frontend) (push) Successful in 18s
修改镜像名可以直接运行
2025-09-04 12:44:27 +08:00

25 lines
544 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:8443/zfxt/frontend:latest
container_name: my-frontend-web
ports:
- "5555:5555"
depends_on:
- backend
networks:
- app-network
# 移除了build配置因为我们现在使用预构建的镜像
backend:
image: gitea.zfxt.top:8443/zfxt/backend:latest
container_name: my-backend-api
networks:
- app-network
# 移除了build配置因为我们现在使用预构建的镜像
networks:
app-network:
driver: bridge