fix: use absolute volume path for linkwarden postgres data

This commit is contained in:
2026-05-07 13:17:31 +00:00
parent ab84a27e06
commit 575c1fee9c
+2 -2
View File
@@ -1,13 +1,13 @@
services: services:
postgres: postgres:
image: postgres:16-alpine image: postgres:16-alpine
ports: ports:
- "5432:5432" - "5432:5432"
restart: always restart: always
environment: environment:
POSTGRES_PASSWORD: mysecretpassword POSTGRES_PASSWORD: mysecretpassword
volumes: volumes:
- ./pgdata:/var/lib/postgresql/data - /srv/docker/linkwarden/pgdata:/var/lib/postgresql/data
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"] test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s interval: 5s