-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
156 lines (117 loc) · 3.53 KB
/
docker-compose-dev.yml
File metadata and controls
156 lines (117 loc) · 3.53 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# This Docker Compose file is intended for local development.
# It builds services from local source code instead of pulling from a remote registry.
services:
# ------------------ Frontend ------------------
frontend:
# Builds the frontend image from the local directory.
build:
context: ../unicef-frontend
# Assigns a name to the built image for local reference.
image: geosphere-dev/frontend:latest
container_name: frontend
restart: always
ports:
- "0.0.0.0:3000:3000"
depends_on:
- agent
networks:
- net_frontend_agent
# ------------------ Agent ------------------
agent:
# Builds the agent image from the local directory.
build:
context: ../unicef-agent
# Assigns a name to the built image for local reference.
image: geosphere-dev/agent:latest
container_name: agent
restart: always
secrets:
- langfuse_host
- langfuse_public_key
- langfuse_secret_key
- openai_api_key
- jwt_secret_key
- users
- vertex_auth.json
- aws_bearer_token_bedrock
depends_on:
- datawarehouse_mcp
- rag_mcp
- geospatial_mcp
networks:
- net_frontend_agent
- net_agent_datawarehouse
- net_agent_rag
- net_agent_geospatial
environment:
# Set environment to 'dev' for local development.
- ENVIRONMENT=dev
# ------------------ Data-Warehouse MCP ------------------
datawarehouse_mcp:
# Builds the datawarehouse_mcp image from the local directory.
build:
context: ../unicef-datawarehouse-mcp
# Assigns a name to the built image for local reference.
image: geosphere-dev/datawarehouse:latest
container_name: datawarehouse_mcp
restart: always
networks:
- net_agent_datawarehouse
# ------------------ RAG MCP ------------------
rag_mcp:
# Builds the rag_mcp image from the local directory.
build:
context: ../unicef-rag-mcp
# Assigns a name to the built image for local reference.
image: geosphere-dev/rag:latest
container_name: rag_mcp
restart: always
secrets:
- aws_bearer_token_bedrock
networks:
- net_agent_rag
# ------------------ Geospatial (GEE) MCP ------------------
geospatial_mcp:
# Builds the geospatial_mcp image from the local directory.
build:
context: ../unicef-gee-mcp
# Assigns a name to the built image for local reference.
image: geosphere-dev/gee:latest
container_name: geospatial_mcp
restart: always
secrets:
- ee_auth.json
networks:
- net_agent_geospatial
# ------------------ Networks ------------------
# Defines the bridge networks for communication between services.
networks:
net_frontend_agent:
driver: bridge
net_agent_datawarehouse:
driver: bridge
net_agent_rag:
driver: bridge
net_agent_geospatial:
driver: bridge
# ------------------ Secrets ------------------
# Defines the secrets to be mounted into the services from local files.
secrets:
langfuse_host:
file: ./.secrets/langfuse_host.txt
langfuse_public_key:
file: ./.secrets/langfuse_public_key.txt
langfuse_secret_key:
file: ./.secrets/langfuse_secret_key.txt
openai_api_key:
file: ./.secrets/openai_api_key.txt
jwt_secret_key:
file: ./.secrets/jwt_secret_key.txt
ee_auth.json:
file: ./.secrets/ee_auth.json
users:
file: ./.secrets/users.json
vertex_auth.json:
file: ./.secrets/vertex_auth.json
aws_bearer_token_bedrock:
file: ./.secrets/aws_bearer_token_bedrock.txt