version : '3' services: kpt-pasture-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-pasture/:/app/kpt-pasture/logger - /etc/localtime:/etc/localtime - /data/docker-compose/kpt-pasture/config:/app/kpt-pasture/config environment: - APP_ENVIRONMENT=production - PASTURE_WORK_DIR=/app/kpt-pasture command: [ "/app/kpt-pasture/kptPasture","crontab" ] kpt-pasture-http: privileged: true container_name: xdmy001_kpt_pasture_http restart: always image: registry.cn-hangzhou.aliyuncs.com/kpt-event/kpt-pasture:test volumes: - /var/logger/kpt-pasture/:/app/kpt-pasture/logger - /etc/localtime:/etc/localtime - /data/docker-compose/kpt-pasture/config:/app/kpt-pasture/config - /data/docker-compose/kpt-pasture/files:/app/kpt-pasture/files ports: - "8091:8090" environment: - APP_ENVIRONMENT=production - PASTURE_WORK_DIR=/app/kpt-pasture command: [ "/app/kpt-pasture/kptPasture","http" ] #kpt-pasture-consumer: #privileged: true #container_name: xdmy001_kpt_pasture_consumer #restart: always #image: registry.cn-hangzhou.aliyuncs.com/kpt-event/kpt-pasture:test #volumes: #- /var/logger/kpt-pasture/:/app/kpt-pasture/logger #- /etc/localtime:/etc/localtime #- /data/docker-compose/kpt-pasture/config:/app/kpt-pasture/config #environment: #- APP_ENVIRONMENT=production #- PASTURE_WORK_DIR=/app/kpt-pasture #command: [ "/app/kpt-pasture/kptPasture","consumer" ]