-
Notifications
You must be signed in to change notification settings - Fork 235
/
Copy pathdeploy.yaml
81 lines (75 loc) · 3.01 KB
/
deploy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: "2.0" # Specifies the SDL version.
services:
langflow:
image: langflowai/langflow:latest # Uses the latest Langflow image.
expose:
- port: 7860 # Port Langflow uses to serve traffic.
as: 80 # Exposes the service internally on port 80.
to:
- global: true # Allows global access to Langflow.
depends_on:
- postgres # Specifies dependency on the postgres service to start first.
env:
- LANGFLOW_DATABASE_URL=postgresql://langflow:langflow@postgres:5432/langflow # Database connection string in URL format for PostgreSQL.
- LANGFLOW_CONFIG_DIR=/app/config # Directory where Langflow will store its configuration files.
- LANGFLOW_HOST=0.0.0.0 # Host address for Langflow, set to 0.0.0.0 to allow external connections.
- LANGFLOW_PORT=7860 # Port Langflow will use; must match the exposed port.
volumes:
- langflow_data:/app/config # Persistent storage for Langflow configurations.
postgres:
image: postgres:16 # Specifies the PostgreSQL version 16 image.
expose:
- port: 5432 # PostgreSQL default port.
as: 5432 # Exposes PostgreSQL on the same port.
to:
- service: langflow # Restricts PostgreSQL access to the Langflow service.
env:
- POSTGRES_USER=langflow # Database user.
- POSTGRES_PASSWORD=langflow # Database password.
- POSTGRES_DB=langflow # Database name.
volumes:
- postgres_data:/var/lib/postgresql/data # Persistent storage for PostgreSQL data.
profiles:
compute:
langflow:
resources:
cpu:
units: 8.0 # CPU units allocated to Langflow.
memory:
size: 16Gi # Memory allocated to Langflow.
storage:
size: 100Gi # Storage size allocated to Langflow.
postgres:
resources:
cpu:
units: 2.0 # CPU units allocated to PostgreSQL.
memory:
size: 4Gi # Memory allocated to PostgreSQL.
storage:
size: 50Gi # Storage size allocated to PostgreSQL.
storage:
langflow_data:
size: 5Gi # Defines a persistent volume for Langflow data.
postgres_data:
size: 5Gi # Defines a persistent volume for PostgreSQL data.
placement:
akash:
signedBy:
anyOf:
- "akash1365yvmc4s7awdyj3n2sav7xfx76adc6dnmlx63" # Allows deployment by any of these authorized accounts.
pricing:
langflow:
denom: uakt
amount: 10000 # Pricing per unit for Langflow.
postgres:
denom: uakt
amount: 5000 # Pricing per unit for PostgreSQL.
deployment:
langflow:
akash:
profile: langflow # References the Langflow compute profile.
count: 1 # Specifies one instance of the Langflow service.
postgres:
akash:
profile: postgres # References the PostgreSQL compute profile.
count: 1 # Specifies one instance of the PostgreSQL service.