Skip to content

Commit 3168e07

Browse files
committed
Add a named volume to the pg service
[refs #bb5ac616c90a]
1 parent b4bc867 commit 3168e07

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

compose_example/docker-compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,8 @@ services:
1212
image: postgres:9.6-alpine
1313
env_file:
1414
- ./db.env
15+
volumes:
16+
- pg-data:/var/lib/postgresql/data
17+
18+
volumes:
19+
pg-data:

0 commit comments

Comments
 (0)