Update docker-compose to use named volume for PostgreSQL
This commit is contained in:
1 parent
94acfcd60e
commit
ef26477913
1 file changed
+5
-1
@@ -12,8 +12,12 @@ services:
|
||||
PUID: 1026
|
||||
PGID: 100
|
||||
volumes:
|
||||
- ./postgresql_data:/var/lib/postgresql/data:rw
|
||||
- postgresql_data:/var/lib/postgresql/data:rw
|
||||
ports:
|
||||
- 5432:5432
|
||||
restart: always
|
||||
network_mode: "bridge"
|
||||
|
||||
volumes:
|
||||
postgresql_data:
|
||||
driver: local
|
||||
Reference in new issue
Block a user