# Server & Docker Infrastructure

## AWS EC2 Server

| Property | Value |
|----------|-------|
| Host alias | `eventify` |
| Hostname | `ec2-174-129-72-160.compute-1.amazonaws.com` |
| User | `ubuntu` |
| SSH Key | `~/.ssh/eventify_keys_21_03_2026.pem` |
| Port | 22 (default) |

### Quick Connect
```bash
ssh eventify
```

---

## Docker Setup

All containers run on a shared Docker network: **`eventify-net`** (external, managed separately).

### Containers

| Container | Purpose | Port | Status Page |
|-----------|---------|------|-------------|
| Django Backend | API server | Proxied via Nginx | `uat.eventifyplus.com/api/` |
| Server Monitor | Uptime & health | 3002 | `status.eventifyplus.com` |

### Docker Network
```bash
# The shared external network (create if missing)
docker network create eventify-net
```

---

## Domains & URLs

| Domain | Purpose |
|--------|---------|
| `app.eventifyplus.com` | Main web app (mvnew) |
| `admin.eventifyplus.com` | Admin command center |
| `partner.eventifyplus.com` | Partner portal |
| `uat.eventifyplus.com/api/` | Backend API (UAT) |
| `prod.eventifyplus.com/api` | Backend API (Production) |
| `status.eventifyplus.com` | Server monitoring |

---

## Common Server Commands

```bash
# SSH into the server
ssh eventify

# Check running containers
docker ps

# View logs for a container
docker logs <container-name> --tail 100 -f

# Restart a container
docker compose restart <service>

# Check Docker network
docker network ls
docker network inspect eventify-net
```

---

## Mail / SMTP

| Property | Value |
|----------|-------|
| Server | `mail.bshtech.net:587` |
| From | `noreply@bshtech.net` |

---

## Notes
- [ ] Document Nginx config and reverse proxy setup
- [ ] Document database type and connection details
- [ ] Document deployment/CI pipeline
- [ ] Map which containers run which services

## Related
- [[Backend - Django]]
- [[Server Monitor]]
