Update docker-compose to use named volume for PostgreSQL

This commit is contained in:
MisticDruid authored and GitHub committed 2026-01-23 17:07:42 +01:00
1 parent 94acfcd60e
commit ef26477913
1 file changed
+6 -2
+6 -2
View File
@@ -1,4 +1,4 @@
services:
services:
db:
container_name: PostgreSQL
image: postgres:17.6
@@ -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