version: '3' networks: default: external: name: wuye services: wuye-iot: restart: always build: context: . dockerfile: ./Dockerfile ports: - 4001:4001 # volumes: # - /etc/hosts:/etc/hosts hostname: wuye-iot container_name: wuye-iot image: wuye-iot