mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-08-10 16:37:34 +00:00
Update Grafana to v13, add version notes
This commit is contained in:
@@ -120,6 +120,7 @@ VOLUME /data
|
||||
#### 数据库持久化
|
||||
|
||||
```docker
|
||||
# 建议使用 postgres:16 或 postgres:latest,具体版本号根据数据库兼容性需求选择
|
||||
FROM postgres:16
|
||||
VOLUME /var/lib/postgresql/data
|
||||
```
|
||||
@@ -173,6 +174,7 @@ $ docker inspect mycontainer --format '{{json .Mounts}}' | jq
|
||||
```yaml
|
||||
services:
|
||||
db:
|
||||
# 建议使用 postgres:16 或其他具体版本,避免 latest
|
||||
image: postgres:16
|
||||
volumes:
|
||||
# 命名卷(推荐)
|
||||
|
||||
Reference in New Issue
Block a user