docker-compose.yml 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. version : '3'
  2. services:
  3. kpt-dtm-crontab:
  4. privileged: true
  5. container_name: xdmy001_kpt_pasture_crontab
  6. restart: always
  7. image: registry.cn-hangzhou.aliyuncs.com/kpt-event/kpt-pasture:test
  8. volumes:
  9. - /var/logger/kpt-dtm/:/app/kpt-dtm/logger
  10. - /etc/localtime:/etc/localtime
  11. - /data/docker-compose/kpt-pasture/config:/app/kpt-pasture/config
  12. environment:
  13. - APP_ENVIRONMENT=production
  14. - DTM_WORK_DIR=/app/kpt-pasture/bin
  15. ports:
  16. - "8091:8090"
  17. command: [ "/app/kpt-pasture/bin/kptPasture","crontab" ]
  18. kpt-dtm-http:
  19. privileged: true
  20. container_name: xdmy001_kpt_pasture_http
  21. restart: always
  22. image: registry.cn-hangzhou.aliyuncs.com/kpt-event/kpt-dtm:test
  23. volumes:
  24. - /var/logger/kpt-dtm/:/app/kpt-dtm/logger
  25. - /etc/localtime:/etc/localtime
  26. - /data/docker-compose/kpt-dtm/config:/app/kpt-dtm/config
  27. - /data/docker-compose/kpt-pasture/files:/app/kpt-pasture/files
  28. environment:
  29. - APP_ENVIRONMENT=production
  30. - DTM_WORK_DIR=/app/kpt-pasture/bin
  31. command: [ "/app/kpt-pasture/bin/kptPasture","http" ]