feat:docker镜像发布

This commit is contained in:
Accelerator
2025-08-28 12:55:52 +00:00
parent bbf303711d
commit 0c33a72c0a
36 changed files with 28 additions and 77 deletions

View File

@@ -1,23 +1,21 @@
version: '3.8'
services:
file-transfer-go:
build: .
ports:
- "8080:8080"
environment:
- NODE_ENV=production
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8080"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# 可选:使用已发布的镜像
# file-transfer-go:
# image: matrixseven/file-transfer:latest
# file-transfer-go:
# build: .
# ports:
# - "8080:8080"
# environment:
# - NODE_ENV=production
# restart: unless-stopped
# healthcheck:
# test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8080"]
# interval: 30s
# timeout: 10s
# retries: 3
# start_period: 40s
file-transfer-go:
image: matrixseven/file-transfer-go:latest
ports:
- "8080:8080"
restart: unless-stopped