This commit is contained in:
2025-05-07 21:04:00 +08:00
parent 17fca60282
commit 8e29d15e6d
15 changed files with 291 additions and 12 deletions

View File

@@ -0,0 +1,21 @@
# 部署 PostgreSQL 单节点
- 按实际环境修改
- docker-compose.yml
- pgsql/conf.d/\*.cnf
- 创建目录
```
grep '\<source:' docker-compose.yml | cut -d: -f2 | xargs mkdir -p
```
- 启动
```
docker-compose up -d
```
- 查看日志,直至出现 "PGSQL is ready for connections."
```
docker-compose logs pgsql
```