增加compose部署

This commit is contained in:
Luyus
2026-01-04 17:00:25 +08:00
parent d6417d8326
commit 9ef1cf11ec
2 changed files with 17 additions and 5 deletions

17
docker-compose.yml Normal file
View File

@@ -0,0 +1,17 @@
version: '3.8'
services:
coin-portal:
build:
context: .
dockerfile: Dockerfile
container_name: coin-portal
ports:
- "10081:80"
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost/index.html"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s