We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 914e64e commit b77d143Copy full SHA for b77d143
.env
@@ -0,0 +1,3 @@
1
+POSTGRES_USER=postgres
2
+POSTGRES_PASSWORD=postgres
3
+POSTGRES_DB=petappdb
docker-compose.guide.yml
@@ -178,7 +178,9 @@ services:
178
nofile:
179
soft: 20000
180
hard: 40000
181
- volumes: # 将主机的数据卷或着文件挂载到容器里
+ volumes: # 将主机的数据卷或着文件挂载到容器里;
182
+ # 默认情况下数据将仅在容器中, 如果您决定删除容器,所有数据都将彻底消失
183
+ # 为了持久化数据,我们将使用 Docker 卷。它将与您计算机的本地文件夹共享容器内的数据库日期。这意味着每次您重新构建 Postgres Docker Compose 时,这些相同的数据都将用于当前项目
184
- "/localhost/postgres.sock:/var/run/postgres/postgres.sock"
185
- "/localhost/data:/var/lib/postgresql/data"
186
0 commit comments