mirror of
https://github.com/MatrixSeven/file-transfer-go.git
synced 2026-02-04 03:25:03 +08:00
feat:docker镜像发布
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user