File tree Expand file tree Collapse file tree 3 files changed +50
-4
lines changed Expand file tree Collapse file tree 3 files changed +50
-4
lines changed Original file line number Diff line number Diff line change @@ -566,6 +566,10 @@ docker container stop registry && docker container rm -v registry
566
566
567
567
[ 在 docker 中部署 MySQL] ( docker/mysql.md )
568
568
569
+ ### ` PostgreSQL `
570
+
571
+ [ 在 docker 中部署 PostgreSQL] ( docker/postgres.md )
572
+
569
573
### ` Redis `
570
574
571
575
[ 在 docker 中部署 Redis] ( docker/redis.md )
Original file line number Diff line number Diff line change @@ -83,9 +83,9 @@ docker stack deploy --compose-file=portainer-agent-stack.yml portainer
83
83
## 运行容器
84
84
85
85
``` bash
86
- docker run -d \
87
- -p 8000:8000 \
88
- -p 9000:9000 \
86
+ docker run -d -p 8000:8000 -p 9000:9000 -p 9443:9443 \
87
+ --name=portainer --restart=always \
89
88
-v /var/run/docker.sock:/var/run/docker.sock \
90
- -v ~ /_docker/portainer/data:/data portainer/portainer:1.23.2
89
+ -v ~ /_docker/portainer/data:/data \
90
+ portainer/portainer-ce:latest
91
91
```
Original file line number Diff line number Diff line change
1
+ postgres
2
+ ===
3
+
4
+ ![ postgres logo] ( https://raw.githubusercontent.com/docker-library/docs/01c12653951b2fe592c1f93a13b4e289ada0e3a1/postgres/logo.png )
5
+
6
+ 快速启动
7
+
8
+ ``` bash
9
+ docker run \
10
+ -p 5432:5432 \
11
+ -e POSTGRES_PASSWORD=wcjiang \
12
+ --name postgres \
13
+ --restart always \
14
+ -d \
15
+ postgres:latest
16
+ ```
17
+
18
+ 使用 stack 部署示例
19
+
20
+ ``` yml
21
+ # Use postgres/example user/password credentials
22
+ version : ' 3.1'
23
+
24
+ services :
25
+
26
+ db :
27
+ image : postgres:latest
28
+ restart : always
29
+ environment :
30
+ POSTGRES_PASSWORD : example
31
+
32
+ adminer :
33
+ image : adminer:latest
34
+ restart : always
35
+ ports :
36
+ - 8081:8080
37
+ ` ` `
38
+
39
+ ` ` ` bash
40
+ docker stack deploy -c stack.yml postgres
41
+ ```
42
+
You can’t perform that action at this time.
0 commit comments