Files
CICD_Learning/docker-compose.yml
小贺 a0e58acb46
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 2m20s
修改镜像名
2025-09-03 16:21:27 +08:00

28 lines
571 B
YAML

version: '3.8'
services:
frontend:
build:
context: ./front
dockerfile: dockerfile
container_name: my-frontend-web
image: gitea.zfxt.top/zfxt/frontend:latest
ports:
- "5555:5555" # 修改为5555端口映射
depends_on:
- backend
networks:
- app-network
backend:
build:
context: ./backend
dockerfile: dockerfile
image: gitea.zfxt.top/zfxt/backend:latest
container_name: my-backend-api # 设置后端容器名
networks:
- app-network
networks:
app-network:
driver: bridge