version: "3.7" services: jenkins-webhook-trigger: container_name: jenkins-webhook-trigger image: 192.168.1.140:5000/epmet-saas-dev/jenkins-webhook-trigger:001 network_mode: host # 使用host网络 volumes: - "/Volumes/data/ws_python/wxz/JenkinsWebHookTrigger/lastcommit.txt:/lastcommit.txt" environment: RUN_INSTRUCT: "python /main.py runserver 0.0.0.0:7998" JWHT_GIT_PROJECT_DIR: "/epmet-saas" JWHT_LAST_DEPLOY_COMMIT_RECORD: "/lastcommit.txt" restart: "unless-stopped" logging: driver: local options: max-size: "10m" max-file: "2" deploy: resources: limits: cpus: '0.1' memory: 250M