deploy: use mainland-accessible postgres and redis mirrors
This commit is contained in:
@@ -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 网络内部访问
|
||||
|
||||
Reference in New Issue
Block a user