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