deploy: use mainland-accessible postgres and redis mirrors

This commit is contained in:
Kevin
2026-03-22 20:27:16 +08:00
parent 1b5b6ee36d
commit b6d9eab44d

View File

@@ -3,7 +3,7 @@ version: '3.8'
services:
# PostgreSQL 数据库(使用最新版 17
postgres:
image: postgres:17-alpine
image: m.daocloud.io/docker.io/library/postgres:17-alpine
container_name: life-echo-postgres
ports:
- "127.0.0.1:5432:5432" # 仅绑定 localhost通过 SSH 隧道访问
@@ -29,7 +29,7 @@ services:
# Redis 服务(用于会话存储和 Celery 消息队列)
redis:
image: redis:7-alpine
image: m.daocloud.io/docker.io/library/redis:7-alpine
container_name: life-echo-redis
# ports:
# - "6379:6379" # 不暴露到宿主机,仅在 Docker 网络内部访问