-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
85 lines (78 loc) · 2.03 KB
/
Copy pathdocker-compose.yml
File metadata and controls
85 lines (78 loc) · 2.03 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
services:
postgres:
image: joshuasundance/postgis_pgvector:1.0.0
env_file:
- .env
volumes:
- govgis_nov2023-slim-spatial-server_pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
postgres-init:
build:
context: .
dockerfile: Dockerfile
target: base
env_file:
- .env
volumes:
- ./backend:/home/appuser/backend
- ./govgis-nov2023/:/home/appuser/postgres-init
depends_on:
postgres:
condition: service_healthy
working_dir: /home/appuser/backend
command: ["python", "load_data.py"]
backend:
build:
context: .
dockerfile: Dockerfile
target: base
env_file:
- .env
volumes:
- ./backend:/home/appuser/backend
- ./models:/home/appuser/models
ports:
- "${BACKEND_PORT:-8080}:8080"
depends_on:
postgres:
condition: service_healthy
postgres-init:
condition: service_completed_successfully
working_dir: /home/appuser/backend
command: ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8080"]
# command: ["gunicorn", "app:app"]
mcp:
build:
context: .
dockerfile: Dockerfile
target: mcp
env_file:
- .env
volumes:
- ./backend:/home/appuser/backend
ports:
- "${MCP_PORT:-8081}:8081"
depends_on:
backend:
condition: service_started
working_dir: /home/appuser/backend
command: ["fastmcp", "run", "--transport", "streamable-http", "--host", "0.0.0.0", "--port", "8081", "--no-banner", "mcp.py"]
inspector:
image: ghcr.io/modelcontextprotocol/inspector:latest
environment:
- HOST=0.0.0.0
ports:
- "6274:6274"
- "6277:6277"
pgadmin:
image: dpage/pgadmin4:7.8
env_file:
- .env
volumes:
- govgis_nov2023-slim-spatial-server_pgadmin_data:/var/lib/pgadmin
ports:
- "${PGADMIN_PORT:-80}:80"
volumes:
govgis_nov2023-slim-spatial-server_pgdata:
govgis_nov2023-slim-spatial-server_pgadmin_data: