添加 Docker 部署配置

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-04-11 15:29:38 +08:00
parent 40e23a8b78
commit 18fe9e61b1
3 changed files with 117 additions and 0 deletions

26
docker-compose.prod.yml Normal file
View File

@@ -0,0 +1,26 @@
version: '3.8'
services:
web:
image: registry.boss160.cn/junhong/device-voice-h5:latest
container_name: junhong-device-voice-h5
restart: unless-stopped
ports:
- '3003:80'
networks:
- device-voice-network
healthcheck:
test: ['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://127.0.0.1:80/health']
interval: 30s
timeout: 3s
retries: 3
start_period: 5s
logging:
driver: 'json-file'
options:
max-size: '10m'
max-file: '3'
networks:
device-voice-network:
driver: bridge