35 lines
1.1 KiB
YAML
35 lines
1.1 KiB
YAML
services:
|
|
his_sur_data_deal:
|
|
build:
|
|
context: /share/Container/his_sur_data_deal
|
|
dockerfile: Dockerfile
|
|
args:
|
|
HTTP_PROXY: http://192.168.31.7:7893
|
|
HTTPS_PROXY: http://192.168.31.7:7893
|
|
NO_PROXY: localhost,127.0.0.1,192.168.31.0/24,his_sur_data_deal
|
|
pull_policy: never
|
|
image: his-sur-data-deal:latest
|
|
container_name: his_sur_data_deal
|
|
restart: unless-stopped
|
|
ports:
|
|
- "4004:8000"
|
|
volumes:
|
|
- /share/Container/his_sur_data_deal/data/jobs:/tmp/his_sur_data_deal_jobs
|
|
environment:
|
|
TZ: Asia/Shanghai
|
|
HTTP_PROXY: http://192.168.31.7:7893
|
|
HTTPS_PROXY: http://192.168.31.7:7893
|
|
http_proxy: http://192.168.31.7:7893
|
|
https_proxy: http://192.168.31.7:7893
|
|
NO_PROXY: localhost,127.0.0.1,192.168.31.0/24,his_sur_data_deal
|
|
healthcheck:
|
|
test:
|
|
[
|
|
"CMD-SHELL",
|
|
"python -c \"import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/health', timeout=5).read()\"",
|
|
]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 6
|
|
start_period: 20s
|