Skip to content

Commit 49824c9

Browse files
authored
AWS deployment documentation added
1 parent b22c9a0 commit 49824c9

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,40 @@ curl http://localhost:8000/assemblies
193193

194194
---
195195

196+
## :cloud: AWS EC2 deployment
197+
198+
If you want to deploy GenomicOps-MCP to an Amazon EC2 instance, it is recommended to do this via Docker.
199+
200+
- **First build and push the Docker container with the associated Dockerfile:**
201+
```bash
202+
docker buildx build --platform linux/amd64,linux/arm64 -t tobneu/genomicsmcp:latest --push .
203+
```
204+
- **Fire up an EC2 instance (Amazon Linux 2023 AMI, t3.small is sufficient)**
205+
206+
Make sure to confgure a security group that allows:
207+
* SSH (port 22) from your IP
208+
* Custom TCP (port 8000) from your IP (or 0.0.0.0/0 if you want public access
209+
- **Install Docker and launch container**
210+
```bash
211+
sudo yum update -y
212+
sudo yum install docker -y
213+
sudo systemctl start docker
214+
sudo systemctl enable docker
215+
sudo usermod -a -G docker ec2-user
216+
217+
# Log out and back in for group changes to take effect
218+
exit
219+
```
220+
```bash
221+
docker run -d -p 8000:8000 --name genomics-mcp --restart unless-stopped tobneu/genomicsmcp
222+
```
223+
- **Test service**
224+
```bash
225+
curl http://<EC2 IP address>:8000/sse
226+
```
227+
228+
---
229+
196230
## 🧰 Development Tips
197231

198232
- **Run with uv**

0 commit comments

Comments
 (0)