services: postgres: image: postgres:16-alpine ports: - "5432:5432" restart: always environment: POSTGRES_PASSWORD: mysecretpassword volumes: - ./pgdata:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 5s timeout: 5s retries: 10 linkwarden: image: ghcr.io/linkwarden/linkwarden:latest restart: always ports: - "3015:3000" environment: - DATABASE_URL=postgresql://postgres:mysecretpassword@postgres:5432/postgres - NEXTAUTH_URL=http://localhost:3000 - NEXTAUTH_SECRET=super-secret-random-string-12345 depends_on: postgres: condition: service_healthy