Harden Docker deployment tiers

This commit is contained in:
ShukeBta
2026-06-15 21:00:52 +08:00
parent fea1b1dda1
commit 713fc6ec1e
6 changed files with 35 additions and 17 deletions
+1 -3
View File
@@ -22,7 +22,6 @@ services:
# 方式二:Docker Hub 备用(GHCR 拉取慢或不可用时使用)
# image: shukbet/mediastationgo:latest
container_name: mediastation-go
restart: unless-stopped
init: true
depends_on:
@@ -122,7 +121,6 @@ services:
postgres:
image: postgres:16-alpine
container_name: mediastation-postgres
restart: unless-stopped
environment:
POSTGRES_DB: mediastation
@@ -133,7 +131,7 @@ services:
# PostgreSQL 主数据目录。升级/重建容器时必须保留。
- ./postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U mediastation -d mediastation"]
test: ["CMD-SHELL", "pg_isready -h 127.0.0.1 -U mediastation -d mediastation"]
interval: 10s
timeout: 5s
retries: 10