Skip to content

Commit 3b725d5

Browse files
committed
use docker-compose volumes for postgres
1 parent e7228c2 commit 3b725d5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@
44
.vscode/
55
build/
66
composer.lock
7-
database
87
var/
98
vendor/

docker-compose.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ services:
4242
ports:
4343
- '5432:5432'
4444
volumes:
45-
- ./database/postgres:/var/lib/postgresql/data
45+
- postgres:/var/lib/postgresql/data
4646
swagger-ui:
4747
container_name: petstore-swagger-ui
4848
hostname: petstore-swagger-ui
@@ -68,3 +68,5 @@ services:
6868
depends_on:
6969
- php
7070
- swagger-ui
71+
volumes:
72+
postgres:

0 commit comments

Comments
 (0)