James Hodson
08/30/2024, 8:35 AMversion: '3.8'
services:
postgres:
image: postgres:15.3
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 10s
retries: 5
start_period: 5s
restart: always
lakefs:
image: treeverse/lakefs:latest
depends_on:
postgres:
condition: service_healthy
ports:
- "8000:8000"
environment:
- LAKEFS_DATABASE_TYPE=postgres
- LAKEFS_DATABASE_POSTGRES_CONNECTION_STRING="<postgres://postgres:postgres@postgres:5432/postgres?sslmode=disable>"
- LAKEFS_AUTH_ENCRYPT_SECRET_KEY=secretsecret
- LAKEFS_BLOCKSTORE_TYPE=s3
- LAKEFS_BLOCKSTORE_S3_FORCE_PATH_STYLE=true
- LAKEFS_BLOCKSTORE_S3_ENDPOINT=${S3_ENDPOINT}
- LAKEFS_BLOCKSTORE_S3_DISCOVER_BUCKET_REGION=false
- LAKEFS_BLOCKSTORE_S3_CREDENTIALS_ACCESS_KEY_ID=${S3_ACCESS_KEY}
- LAKEFS_BLOCKSTORE_S3_CREDENTIALS_SECRET_ACCESS_KEY=${S3_SECRET_KEY}
I am receiving this error:
`lakefs-1 | time="2024-08-30T082901Z" level=fatal msg="Failed to open KV store" func=cmd/lakefs/cmd.init.func9 file="cmd/run.go:145" error="connect failed: failed to connect to `user=lakefs database=: /tmp/.s.PGSQL.5432 (/tmp): dial error: dial unix /tmp/.s.PGSQL.5432: connect: no such file or directory"
Searched through the slack and even followed the postgres example on the examples repo. Would appreciate any insight if I am missing something 🙂Iddo Avneri
08/30/2024, 2:17 PM