infrastructure(docker): 更新 Docker Compose 配置

- 修改 PostgreSQL 服务的端口映射,限制为本地访问
- 移除 Redis 服务的端口映射和自定义命令
- 删除网络的 IPAM 配置
This commit is contained in:
danial
2025-09-17 21:05:01 +08:00
parent ba06a0993c
commit 94c3c69618

View File

@@ -133,7 +133,7 @@ services:
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5444:5432"
- "127.0.0.15444:5432"
networks:
- app-network
healthcheck:
@@ -148,9 +148,6 @@ services:
container_name: apple-exchange-redis
volumes:
- redis_data:/data
command: redis-server /usr/local/etc/redis/redis.conf
ports:
- "6379:6379"
networks:
- app-network
healthcheck:
@@ -215,6 +212,3 @@ networks:
app-network:
driver: bridge
name: apple-exchange-network
ipam:
config:
- subnet: 172.20.0.0/16