version: '3' services: honeycom-ui: build: context: . restart: always container_name: honeycom-ui image: honeycom-ui networks: - spring_cloud_default volumes: - ../dist:/data/main - ./honeycom-ui.conf:/etc/nginx/conf.d/default.conf external_links: - honeycom-gateway ports: - 80:80 # 加入到后端网络, 默认为 honeycom_default | docker network ls 查看 networks: spring_cloud_default: external: true