Skip to content

Commit

Permalink
add skyvern container health check (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
LawyZheng authored May 27, 2024
1 parent eab0793 commit 6dbc1d2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ services:
- OPENAI_API_KEY=<your_openai_key>
# If you want to use other LLM provider, like azure and anthropic:
# - ENABLE_ANTHROPIC=true
# - LLM_KEY=ANTHROPIC_CLAUDE3_OPUS
# - ANTHROPIC_API_KEY=<your_anthropic_key>
# - ENABLE_AZURE=true
# - LLM_KEY=AZURE_OPENAI_GPT4V
Expand All @@ -47,6 +48,11 @@ services:
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD", "test", "-f", "/app/.streamlit/secrets.toml"]
interval: 5s
timeout: 5s
retries: 5

streamlit:
image: public.ecr.aws/t6d4b5t4/skyvern:latest
Expand All @@ -60,5 +66,6 @@ services:
- ./.streamlit:/app/.streamlit
command: ["/bin/bash", "entrypoint-streamlit.sh"]
depends_on:
- skyvern
skyvern:
condition: service_healthy

0 comments on commit 6dbc1d2

Please sign in to comment.