version : '3' services: kpt-dtm-crontab: privileged: true container_name: xdmy001_kpt_pasture_crontab restart: always image: registry.cn-hangzhou.aliyuncs.com/kpt-event/kpt-pasture:test volumes: - /var/logger/kpt-dtm/:/app/kpt-dtm/logger - /etc/localtime:/etc/localtime - /data/docker-compose/kpt-pasture/config:/app/kpt-pasture/config environment: - APP_ENVIRONMENT=production - DTM_WORK_DIR=/app/kpt-pasture/bin command: [ "/app/kpt-pasture/bin/kptPasture","crontab" ] kpt-dtm-http: privileged: true container_name: xdmy001_kpt_pasture_http restart: always image: registry.cn-hangzhou.aliyuncs.com/kpt-event/kpt-dtm:test volumes: - /var/logger/kpt-dtm/:/app/kpt-dtm/logger - /etc/localtime:/etc/localtime - /data/docker-compose/kpt-dtm/config:/app/kpt-dtm/config - /data/docker-compose/kpt-pasture/files:/app/kpt-pasture/files environment: - APP_ENVIRONMENT=production - DTM_WORK_DIR=/app/kpt-pasture/bin command: [ "/app/kpt-pasture/bin/kptPasture","http" ]