version: '2.2' services: psql: image: postgres:12.2-alpine restart: always healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 10s timeout: 5s retries: 5 ports: - "5433:5433" environment: POSTGRES_HOST_AUTH_METHOD: "trust"