add compose deployment docs

This commit is contained in:
2026-05-09 00:22:54 +08:00
parent 3d713b0fc5
commit c7a8cba300
3 changed files with 201 additions and 13 deletions

27
docker_compose.yaml Normal file
View File

@@ -0,0 +1,27 @@
services:
his_sur_data_deal:
build:
context: .
dockerfile: Dockerfile
image: his-sur-data-deal:latest
container_name: his_sur_data_deal
restart: unless-stopped
ports:
- "8000:8000"
volumes:
- his_sur_data_deal_jobs:/tmp/his_sur_data_deal_jobs
environment:
TZ: Asia/Shanghai
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
volumes:
his_sur_data_deal_jobs: