version: '3' services: lttcai-ui: build: context: . restart: always container_name: lttcai-ui image: lttcai-ui networks: - spring_cloud_default external_links: - lttcai-gateway ports: - 80:80 # 加入到后端网络, 默认为 spring_cloud_default | docker network ls 查看 networks: spring_cloud_default: external: true