Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
d9866489
Unverified
Commit
d9866489
authored
Sep 09, 2023
by
李锐东
Committed by
GitHub
Sep 09, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add health check and depend condition in docker compose (#1113)
parent
c4d8bdc3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
+19
-6
docker-compose.yaml
docker/docker-compose.yaml
+19
-6
No files found.
docker/docker-compose.yaml
View file @
d9866489
...
...
@@ -114,9 +114,12 @@ services:
# The sample rate for Sentry profiles. Default: `1.0`
SENTRY_PROFILES_SAMPLE_RATE
:
1.0
depends_on
:
-
db
-
redis
-
weaviate
db
:
condition
:
service_healthy
redis
:
condition
:
service_healthy
weaviate
:
condition
:
service_started
volumes
:
# Mount the storage directory to the container, for storing user files.
-
./volumes/app/storage:/app/api/storage
...
...
@@ -167,9 +170,12 @@ services:
# the api-key for resend (https://resend.com)
RESEND_API_KEY
:
'
'
depends_on
:
-
db
-
redis
-
weaviate
db
:
condition
:
service_healthy
redis
:
condition
:
service_healthy
weaviate
:
condition
:
service_started
volumes
:
# Mount the storage directory to the container, for storing user files.
-
./volumes/app/storage:/app/api/storage
...
...
@@ -206,6 +212,11 @@ services:
-
./volumes/db/data:/var/lib/postgresql/data
ports
:
-
"
5432:5432"
healthcheck
:
test
:
[
"
CMD"
,
"
pg_isready"
]
interval
:
1s
timeout
:
3s
retries
:
30
# The redis cache.
redis
:
...
...
@@ -216,6 +227,8 @@ services:
-
./volumes/redis/data:/data
# Set the redis password when startup redis server.
command
:
redis-server --requirepass difyai123456
healthcheck
:
test
:
[
"
CMD"
,
"
redis-cli"
,
"
ping"
]
# The Weaviate vector store.
weaviate
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment