2024-04-11 08:54:27 +08:00
services :
postgres :
image : postgres:14-alpine
2024-05-30 01:36:17 +08:00
restart : always
2024-04-11 08:54:27 +08:00
# comment out if you want to externally connect DB
# ports:
# - 5432:5432
volumes :
- ./postgres-data:/var/lib/postgresql/data
environment :
- PGDATA=/var/lib/postgresql/data/pgdata
- POSTGRES_USER=skyvern
- POSTGRES_PASSWORD=skyvern
- POSTGRES_POSTGRES_DB=skyvern
healthcheck :
test : [ "CMD-SHELL" , "pg_isready -U skyvern" ]
interval : 5s
timeout : 5s
retries : 5
skyvern :
2024-05-30 01:36:17 +08:00
image : public.ecr.aws/skyvern/skyvern:latest
2024-04-11 08:54:27 +08:00
restart : on -failure
# comment out if you want to externally call skyvern API
2024-05-30 01:36:17 +08:00
ports :
- 8000 : 8000
2024-04-11 08:54:27 +08:00
volumes :
- ./artifacts:/data/artifacts
- ./videos:/data/videos
- ./har:/data/har
2024-10-31 23:10:11 +08:00
- ./log:/data/log
2024-04-11 08:54:27 +08:00
- ./.streamlit:/app/.streamlit
2025-01-22 00:02:43 -05:00
# Uncomment if you want to connect to any local changes
# - ./skyvern:/app/skyvern
2024-04-11 08:54:27 +08:00
environment :
- DATABASE_STRING=postgresql+psycopg://skyvern:skyvern@postgres:5432/skyvern
- BROWSER_TYPE=chromium-headful
- ENABLE_OPENAI=true
- OPENAI_API_KEY=<your_openai_key>
# If you want to use other LLM provider, like azure and anthropic:
# - ENABLE_ANTHROPIC=true
2025-01-22 00:02:43 -05:00
# - LLM_KEY=ANTHROPIC_CLAUDE3.5_SONNET
2024-04-11 08:54:27 +08:00
# - ANTHROPIC_API_KEY=<your_anthropic_key>
# - ENABLE_AZURE=true
2024-05-30 01:36:17 +08:00
# - LLM_KEY=AZURE_OPENAI
2024-04-11 08:54:27 +08:00
# - AZURE_DEPLOYMENT=<your_azure_deployment>
# - AZURE_API_KEY=<your_azure_api_key>
# - AZURE_API_BASE=<your_azure_api_base>
# - AZURE_API_VERSION=<your_azure_api_version>
2025-01-28 11:59:33 -07:00
# Amazon Bedrock Support:
# Amazon Bedrock is a managed service that enables you to invoke LLMs and bill them through your AWS account.
# To use Amazon Bedrock as the LLM provider for Skyvern, specify the following environment variables.
# 1. In the AWS IAM console, create a new AWS IAM User (name it whatever you want)
# 2. Assign the "AmazonBedrockFullAccess" policy to the user
# 3. Generate an IAM Access Key under the IAM User's Security Credentials tab
# 4. In the Amazon Bedrock console, go to "Model Access"
# 5. Click Modify Model Access button
# 6. Enable "Claude 3.5 Sonnet v2" and save changes
# - ENABLE_BEDROCK=true
# - LLM_KEY=BEDROCK_ANTHROPIC_CLAUDE3.5_SONNET # This is the Claude 3.5 Sonnet "V2" model. Change to BEDROCK_ANTHROPIC_CLAUDE3.5_SONNET_V1 for the non-v2 version.
# - AWS_REGION=us-west-2 # Replace this with a different AWS region, if you desire
# - AWS_ACCESS_KEY_ID=FILL_ME_IN_PLEASE
# - AWS_SECRET_ACCESS_KEY=FILL_ME_IN_PLEASE
2024-04-11 08:54:27 +08:00
depends_on :
postgres :
condition : service_healthy
2024-05-27 18:13:10 +08:00
healthcheck :
test : [ "CMD" , "test" , "-f" , "/app/.streamlit/secrets.toml" ]
interval : 5s
timeout : 5s
retries : 5
2024-05-30 01:36:17 +08:00
skyvern-ui :
image : public.ecr.aws/skyvern/skyvern-ui:latest
restart : on -failure
ports :
- 8080 : 8080
- 9090 : 9090
volumes :
- ./artifacts:/data/artifacts
- ./videos:/data/videos
- ./har:/data/har
- ./.streamlit:/app/.streamlit
2024-08-12 19:36:24 +03:00
environment :
2024-10-24 16:45:48 +08:00
# if you want to run skyvern on a remote server,
# you need to change the host in VITE_WSS_BASE_URL and VITE_API_BASE_URL to match your server ip
2024-08-12 19:36:24 +03:00
- VITE_WSS_BASE_URL=ws://localhost:8000/api/v1
2024-10-24 16:45:48 +08:00
# - VITE_API_BASE_URL=http://localhost:8000/api/v1
2024-05-30 01:36:17 +08:00
# - VITE_SKYVERN_API_KEY=
depends_on :
skyvern :
condition : service_healthy