| ports: | ports: | ||||
| - "${EXPOSE_POSTGRES_PORT:-5432}:5432" | - "${EXPOSE_POSTGRES_PORT:-5432}:5432" | ||||
| healthcheck: | healthcheck: | ||||
| test: [ "CMD", "pg_isready" ] | |||||
| test: [ 'CMD', 'pg_isready', '-h', 'db', '-U', '${PGUSER:-postgres}', '-d', '${POSTGRES_DB:-dify}' ] | |||||
| interval: 1s | interval: 1s | ||||
| timeout: 3s | timeout: 3s | ||||
| retries: 30 | retries: 30 |