Files
CICD_Learning/docker-compose.yml
2025-09-02 23:15:05 +08:00

26 lines
478 B
YAML

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