-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-commands.json
138 lines (138 loc) · 3.39 KB
/
docker-commands.json
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
{
"mcpServers": {
"redis": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"mcp/redis",
"redis://host.docker.internal:6379"
]
},
"djangoMigrations": {
"command": "docker",
"args": [
"run",
"-d",
"--name", "django-migrations-mcp",
"-e", "DJANGO_SETTINGS_MODULE=your_project.settings",
"-e", "MCP_SERVICE_PORT=8000",
"-v", "/path/to/your/django/project:/app/project",
"-p", "8000:8000",
"django-migrations-mcp"
]
},
"djangoMigrationsWithRedis": {
"command": "docker",
"args": [
"run",
"-d",
"--name", "django-migrations-mcp",
"-e", "DJANGO_SETTINGS_MODULE=your_project.settings",
"-e", "MCP_SERVICE_PORT=8000",
"-e", "REDIS_URL=redis://host.docker.internal:6379",
"-v", "/path/to/your/django/project:/app/project",
"-p", "8000:8000",
"--network", "host",
"django-migrations-mcp"
]
},
"development": {
"command": "docker-compose",
"args": [
"up",
"-d",
"--build"
],
"environment": {
"DJANGO_SETTINGS_MODULE": "your_project.settings",
"MCP_SERVICE_PORT": "8000",
"REDIS_URL": "redis://localhost:6379"
}
},
"testing": {
"command": "docker",
"args": [
"run",
"--rm",
"-e", "DJANGO_SETTINGS_MODULE=your_project.settings",
"-e", "PYTHONPATH=/app",
"-v", "${PWD}:/app",
"django-migrations-mcp",
"pytest"
]
},
"production": {
"command": "docker",
"args": [
"run",
"-d",
"--name", "django-migrations-mcp",
"-e", "DJANGO_SETTINGS_MODULE=your_project.settings",
"-e", "MCP_SERVICE_PORT=8000",
"-e", "REDIS_URL=redis://your-redis-host:6379",
"-v", "/path/to/your/django/project:/app/project",
"-p", "8000:8000",
"--restart", "unless-stopped",
"--network", "your-network",
"django-migrations-mcp"
],
"healthCheck": {
"test": ["CMD", "curl", "-f", "http://localhost:8000/health"],
"interval": "30s",
"timeout": "10s",
"retries": 3
}
}
},
"tools": {
"showMigrations": {
"command": "curl",
"args": [
"-X", "POST",
"http://localhost:8000/mcp",
"-H", "Content-Type: application/json",
"-d", "{\"method\": \"show_migrations\"}"
]
},
"makeMigrations": {
"command": "curl",
"args": [
"-X", "POST",
"http://localhost:8000/mcp",
"-H", "Content-Type: application/json",
"-d", "{\"method\": \"make_migrations\", \"params\": {\"apps\": [\"your_app\"]}}"
]
},
"migrate": {
"command": "curl",
"args": [
"-X", "POST",
"http://localhost:8000/mcp",
"-H", "Content-Type: application/json",
"-d", "{\"method\": \"migrate\", \"params\": {\"app\": \"your_app\"}}"
]
}
},
"networks": {
"development": {
"command": "docker",
"args": [
"network",
"create",
"mcp-dev-network"
]
},
"production": {
"command": "docker",
"args": [
"network",
"create",
"--driver", "overlay",
"--attachable",
"mcp-prod-network"
]
}
}
}