1 2 3 4 5 6 7 8 9 10 11 12 13 14
services: postgres: image: postgres:18-alpine environment: POSTGRES_USER: lenso POSTGRES_PASSWORD: lenso POSTGRES_DB: lenso ports: - "5432:5432" healthcheck: test: ["CMD-SHELL", "pg_isready -U lenso -d lenso"] interval: 5s timeout: 3s retries: 10