mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-03-15 14:21:22 +00:00
Fix outdated versions, template variables and version inconsistencies
- Update K8s Dashboard v2.0.0 to v2.7.0 - Update etcd v3.4.0 to v3.5.17 - Update PostgreSQL 15 to 16 for consistency - Update Node.js 12 to 20 (current LTS) - Replace unresolved GitBook template variables (CODE1/2/3/9)
This commit is contained in:
@@ -126,7 +126,7 @@ VOLUME /data
|
||||
#### 数据库持久化
|
||||
|
||||
```docker
|
||||
FROM postgres:15
|
||||
FROM postgres:16
|
||||
VOLUME /var/lib/postgresql/data
|
||||
```
|
||||
|
||||
@@ -181,7 +181,7 @@ $ docker inspect mycontainer --format '{{json .Mounts}}' | jq
|
||||
```yaml
|
||||
services:
|
||||
db:
|
||||
image: postgres:15
|
||||
image: postgres:16
|
||||
volumes:
|
||||
# 命名卷(推荐)
|
||||
|
||||
@@ -224,7 +224,7 @@ $ docker run -v mysql_data:/var/lib/mysql mysql:8.0
|
||||
```docker
|
||||
## 数据库必须使用卷
|
||||
|
||||
FROM postgres:15
|
||||
FROM postgres:16
|
||||
VOLUME /var/lib/postgresql/data
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user