mirror of
https://github.com/MatrixSeven/file-transfer-go.git
synced 2026-02-23 15:24:49 +08:00
feat:docker镜像构建发布
This commit is contained in:
23
docker-compose.yml
Normal file
23
docker-compose.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
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
|
||||
# ports:
|
||||
# - "8080:8080"
|
||||
# restart: unless-stopped
|
||||
Reference in New Issue
Block a user