Просмотр исходного кода

fix: start the plugin daemon after the database has become healthy (#17928)

tags/1.3.0
kurokobo 6 месяцев назад
Родитель
Сommit
bc57fa0619
Аккаунт пользователя с таким Email не найден
2 измененных файлов: 8 добавлений и 6 удалений
  1. 4
    3
      docker/docker-compose-template.yaml
  2. 4
    3
      docker/docker-compose.yaml

+ 4
- 3
docker/docker-compose-template.yaml Просмотреть файл

volumes: volumes:
- ./volumes/db/data:/var/lib/postgresql/data - ./volumes/db/data:/var/lib/postgresql/data
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: 60


# The redis cache. # The redis cache.
redis: redis:
volumes: volumes:
- ./volumes/plugin_daemon:/app/storage - ./volumes/plugin_daemon:/app/storage
depends_on: depends_on:
- db
db:
condition: service_healthy


# ssrf_proxy server # ssrf_proxy server
# for more information, please refer to # for more information, please refer to

+ 4
- 3
docker/docker-compose.yaml Просмотреть файл

volumes: volumes:
- ./volumes/db/data:/var/lib/postgresql/data - ./volumes/db/data:/var/lib/postgresql/data
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: 60


# The redis cache. # The redis cache.
redis: redis:
volumes: volumes:
- ./volumes/plugin_daemon:/app/storage - ./volumes/plugin_daemon:/app/storage
depends_on: depends_on:
- db
db:
condition: service_healthy


# ssrf_proxy server # ssrf_proxy server
# for more information, please refer to # for more information, please refer to

Загрузка…
Отмена
Сохранить