Skip to content

Commit 3327262

Browse files
committed
docs: Update docker-compose and README with example configurations for Caddy and app services
1 parent e6b87a8 commit 3327262

File tree

3 files changed

+29
-6
lines changed

3 files changed

+29
-6
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ The server is configured using a JSON file. Below is an example configuration:
7171
]
7272
}
7373
},
74-
"sseServer": {
74+
"sseExample": {
7575
"url": "https://example.com/sse",
7676
"headers": {
7777
"Authorization": "Bearer example-token"
7878
}
7979
},
80-
"streamableHttpServer": {
80+
"streamableHttpExample": {
8181
"transportType": "streamable-http",
8282
"url": "https://example.com/mcp",
8383
"headers": {
@@ -147,7 +147,8 @@ Usage of mcp-proxy:
147147

148148
## Thanks
149149

150-
This project was inspired by the [adamwattis/mcp-proxy-server](https://github.com/adamwattis/mcp-proxy-server) project
150+
- This project was inspired by the [adamwattis/mcp-proxy-server](https://github.com/adamwattis/mcp-proxy-server) project
151+
- If you have any questions about deployment, you can refer to [《在 Docker 沙箱中运行 MCP Server》](https://miantiao.me/posts/guide-to-running-mcp-server-in-a-sandbox/)([@ccbikai](https://github.com/ccbikai))
151152

152153
## License
153154

config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@
2929
]
3030
}
3131
},
32-
"sseServer": {
32+
"sseExample": {
3333
"url": "https://example.com/sse",
3434
"headers": {
3535
"Authorization": "Bearer example-token"
3636
}
3737
},
38-
"streamableHttpServer": {
38+
"streamableHttpExample": {
3939
"transportType": "streamable-http",
4040
"url": "https://example.com/mcp",
4141
"headers": {

docker-compose.yaml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,26 @@ services:
66
- ./config.json:/config/config.json
77
ports:
88
- "9090:9090"
9-
restart: always
9+
restart: always
10+
11+
12+
# If you don't want to directly mount the configuration file to the app container, you can use the following configuration.
13+
#
14+
# caddy:
15+
# image: caddy:latest
16+
# pull_policy: always
17+
# expose:
18+
# - "80"
19+
# volumes:
20+
# - ./config.json:/config/config.json
21+
# command: ["caddy", "file-server", "--root", "/config"]
22+
#
23+
# app:
24+
# image: ghcr.io/tbxark/mcp-proxy:latest
25+
# pull_policy: always
26+
# ports:
27+
# - "9090:9090"
28+
# restart: always
29+
# depends_on:
30+
# - caddy
31+
# command: [ "--config", "http://caddy/config.json" ]

0 commit comments

Comments
 (0)