version: "2" services: postgres: image: postgres:18 container_name: postgres restart: always ports: - "127.0.0.1:5433:5432" env_file: - ./env/db.env healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 5s timeout: 5s retries: 5 start_period: 30s