docker-compose-test.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. version: "3.8"
  2. services:
  3. push-test:
  4. image: swr.cn-east-3.myhuaweicloud.com/asj-server/push-test:${TAG}
  5. container_name: push-test
  6. volumes:
  7. - /web/docker/ASJPush/static/:/web/ASJPush/static/
  8. environment:
  9. SUPERVISOR_CONF: supervisord_test.conf
  10. OMP_NUM_THREADS: "1"
  11. OPENBLAS_NUM_THREADS: "1"
  12. restart: always
  13. ulimits:
  14. nproc: 65535
  15. nofile:
  16. soft: 65535
  17. hard: 65535
  18. networks:
  19. - backend
  20. healthcheck:
  21. test: ["CMD", "curl", "-f", "http://localhost:8000/init/health-check"]
  22. interval: 30s
  23. timeout: 10s
  24. retries: 3
  25. start_period: 20s
  26. nginx:
  27. image: swr.cn-east-3.myhuaweicloud.com/library/nginx:latest
  28. container_name: nginx
  29. restart: always
  30. ports:
  31. - "80:80"
  32. - "443:443"
  33. volumes:
  34. - ./nginx.conf:/etc/nginx/nginx.conf:ro
  35. - /web/docker/certs/test.push.zositechc.cn.pem:/etc/nginx/certs/test.push.zositechc.cn.pem:ro
  36. - /web/docker/certs/test.push.zositechc.cn.key:/etc/nginx/certs/test.push.zositechc.cn.key:ro
  37. depends_on:
  38. - push-test
  39. networks:
  40. - backend
  41. healthcheck:
  42. test: ["CMD-SHELL", "nginx -t || exit 1"]
  43. interval: 30s
  44. timeout: 10s
  45. retries: 3
  46. start_period: 20s
  47. networks:
  48. backend:
  49. driver: bridge