Browse Source

feat: add health check for pg and redis in docker-compose.middleware.yaml (#7961) (#7962)

tags/0.8.0-beta1
zhuhao 1 year ago
parent
commit
83e84865be
No account linked to committer's email address
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      docker/docker-compose.middleware.yaml

+ 7
- 0
docker/docker-compose.middleware.yaml View File

- ./volumes/db/data:/var/lib/postgresql/data - ./volumes/db/data:/var/lib/postgresql/data
ports: ports:
- "${EXPOSE_POSTGRES_PORT:-5432}:5432" - "${EXPOSE_POSTGRES_PORT:-5432}:5432"
healthcheck:
test: [ "CMD", "pg_isready" ]
interval: 1s
timeout: 3s
retries: 30


# The redis cache. # The redis cache.
redis: redis:
command: redis-server --requirepass difyai123456 command: redis-server --requirepass difyai123456
ports: ports:
- "${EXPOSE_REDIS_PORT:-6379}:6379" - "${EXPOSE_REDIS_PORT:-6379}:6379"
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]


# The DifySandbox # The DifySandbox
sandbox: sandbox:

Loading…
Cancel
Save