Skip to content

Commit 462c402

Browse files
committed
feat(nginx): add to dev and prod
1 parent f52a633 commit 462c402

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

compose-dev.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ services:
44
build:
55
context: .
66
dockerfile: ./backend/api/Dockerfile
7-
entrypoint: bash -c "uv run fastapi run api/main.py --reload"
7+
entrypoint: uv run fastapi run api/main.py --root-path=/api --reload
88
env_file:
99
- ./envs/shared_mcp.env
1010
ports:
@@ -21,6 +21,15 @@ services:
2121
dockerfile: ./backend/mcp/Dockerfile
2222
env_file:
2323
- ./envs/shared_mcp.env
24+
ports:
25+
- 8050:8050
2426
volumes:
2527
- ./backend/mcp:/app/mcp
2628
- ./backend/shared_mcp:/app/shared_mcp
29+
30+
nginx:
31+
image: nginx:1.26.3-alpine
32+
ports:
33+
- 80:80
34+
volumes:
35+
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf

compose.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,19 @@ services:
1515
env_file:
1616
- ./envs/shared_mcp.env
1717
restart: unless-stopped
18+
19+
nginx:
20+
image: nginx:1.26.3-alpine
21+
ports:
22+
- 80:80
23+
volumes:
24+
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
25+
restart: unless-stopped
26+
depends_on:
27+
api:
28+
condition: service_healthy
29+
healthcheck:
30+
test: curl -f http://localhost/docs
31+
interval: 30s
32+
timeout: 10s
33+
retries: 3

0 commit comments

Comments
 (0)