|
@@ -0,0 +1,52 @@
|
|
|
+version: "3.8"
|
|
|
+
|
|
|
+services:
|
|
|
+ push-test:
|
|
|
+ image: swr.cn-east-3.myhuaweicloud.com/asj-server/push-test:${TAG}
|
|
|
+ container_name: push-test
|
|
|
+ volumes:
|
|
|
+ - /web/docker/ASJPush/static/:/web/ASJPush/static/
|
|
|
+ environment:
|
|
|
+ SUPERVISOR_CONF: supervisord_test.conf
|
|
|
+ OMP_NUM_THREADS: "1"
|
|
|
+ OPENBLAS_NUM_THREADS: "1"
|
|
|
+ restart: always
|
|
|
+ ulimits:
|
|
|
+ nproc: 65535
|
|
|
+ nofile:
|
|
|
+ soft: 65535
|
|
|
+ hard: 65535
|
|
|
+ networks:
|
|
|
+ - backend
|
|
|
+ healthcheck:
|
|
|
+ test: ["CMD", "curl", "-f", "http://localhost:8000/init/health-check"]
|
|
|
+ interval: 30s
|
|
|
+ timeout: 10s
|
|
|
+ retries: 3
|
|
|
+ start_period: 20s
|
|
|
+
|
|
|
+ nginx:
|
|
|
+ image: swr.cn-east-3.myhuaweicloud.com/library/nginx:latest
|
|
|
+ container_name: nginx
|
|
|
+ restart: always
|
|
|
+ ports:
|
|
|
+ - "80:80"
|
|
|
+ - "443:443"
|
|
|
+ volumes:
|
|
|
+ - ./nginx.conf:/etc/nginx/nginx.conf:ro
|
|
|
+ - /web/docker/certs/test.push.zositechc.cn.pem:/etc/nginx/certs/test.push.zositechc.cn.pem:ro
|
|
|
+ - /web/docker/certs/test.push.zositechc.cn.key:/etc/nginx/certs/test.push.zositechc.cn.key:ro
|
|
|
+ depends_on:
|
|
|
+ - push-test
|
|
|
+ networks:
|
|
|
+ - backend
|
|
|
+ healthcheck:
|
|
|
+ test: ["CMD-SHELL", "nginx -t || exit 1"]
|
|
|
+ interval: 30s
|
|
|
+ timeout: 10s
|
|
|
+ retries: 3
|
|
|
+ start_period: 20s
|
|
|
+
|
|
|
+networks:
|
|
|
+ backend:
|
|
|
+ driver: bridge
|