git-dev分支push触发jenkins, 自动对相应的微服务进行构建
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
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"
|
|
|
|
JWHT_LOG_DIR: "/log"
|
|
|
|
restart: "unless-stopped"
|
|
|
|
logging:
|
|
|
|
driver: local
|
|
|
|
options:
|
|
|
|
max-size: "10m"
|
|
|
|
max-file: "2"
|
|
|
|
deploy:
|
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpus: '0.1'
|
|
|
|
memory: 250M
|