Skip to content

Commit 7c7ddcd

Browse files
committed
feat(env): reference shared env file
1 parent ad03b6a commit 7c7ddcd

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

compose-dev.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
dockerfile: ./backend/api/Dockerfile
77
entrypoint: bash -c "uv run fastapi run api/main.py --reload"
88
env_file:
9-
- ./.env
9+
- ./envs/shared_mcp.env
1010
ports:
1111
- 8000:8000
1212
volumes:
@@ -20,7 +20,7 @@ services:
2020
context: .
2121
dockerfile: ./backend/mcp/Dockerfile
2222
env_file:
23-
- ./.env
23+
- ./envs/shared_mcp.env
2424
entrypoint: bash -c "uv run mcp/main.py"
2525
volumes:
2626
- ./backend/mcp:/app/mcp

compose.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ services:
22
api:
33
image: api:prod
44
env_file:
5-
- ./.env
5+
- ./envs/shared_mcp.env
66
restart: unless-stopped
77
healthcheck:
88
test: curl -f http://localhost:8000/docs
@@ -13,5 +13,5 @@ services:
1313
mcp:
1414
image: mcp:prod
1515
env_file:
16-
- ./.env
16+
- ./envs/shared_mcp.env
1717
restart: unless-stopped

envs/shared_mcp.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
MCP_SERVER_HOST=0.0.0.0
2+
MCP_SERVER_PORT=8050

0 commit comments

Comments
 (0)