docker-compose.yml 311 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 12 version: "3" services: # 定义 Spring Boot 应用程序所需要的服务(容器) admin: # 构建镜像的路径。"." 表示 Dockerfile 文件所在的当前目录 build: .. # 指定容器名称 container_name: admin # 容器所要使用的端口号 ports: - "8002:8002"