A modern, responsive landing page for Risk Agents, containerized with Docker for easy deployment.
- 🎨 Modern gradient design with animated elements
- 📱 Fully responsive (mobile-friendly)
- 🐳 Docker containerized for easy deployment
- 🚀 Production-ready with security headers
- 🔍 Health check endpoints
- 📊 Proper logging and error handling
- 🔒 Security best practices
- Docker and Docker Compose installed
- Port 8080 available (or modify in docker-compose.yml)
-
Clone/navigate to the project:
cd /Users/gavinslater/projects/landingpage -
Deploy with the script:
chmod +x deploy.sh ./deploy.sh
Or manually:
docker-compose up -d --build
-
Verify deployment:
curl http://localhost:8080/health
- Local development: http://localhost:8080
- Production: https://www.risk-agents.com (once DNS configured)
landingpage/
├── index.html # Updated landing page HTML
├── server.py # Production Python HTTP server
├── Dockerfile # Container definition
├── docker-compose.yml # Docker Compose configuration
├── .dockerignore # Docker ignore rules
├── deploy.sh # Deployment script
└── README.md # This file
The landing page has been updated from gavinslater.co.uk to risk-agents.com:
- Title: "Risk Agents - Welcome"
- Branding: "RA" logo, Risk Agents theme
- Links: Updated to point to
*.risk-agents.comsubdomains - Content: Tailored for risk management focus
- Base Image: Python 3.11 slim
- Port: 8080 (configurable in docker-compose.yml)
- Security: Non-root user, security headers
- Health Checks: Built-in health monitoring
- Logging: Structured logging to stdout
The docker-compose.yml includes Traefik labels for:
- SSL termination with Let's Encrypt
- Domain routing (www.risk-agents.com)
- Non-www to www redirects
# View logs
docker-compose logs -f
# Restart the service
docker-compose restart
# Stop the service
docker-compose down
# Rebuild and restart
docker-compose up -d --build
# Check container health
docker-compose ps-
DNS Configuration:
- Point
risk-agents.comandwww.risk-agents.comto your server IP - Configure subdomains (
ai.risk-agents.com,credit.risk-agents.com)
- Point
-
Reverse Proxy:
- Use Nginx Proxy Manager, Traefik, or similar
- Configure SSL certificates (Let's Encrypt recommended)
- Route
www.risk-agents.comtolocalhost:8080
-
Firewall:
- Ensure port 8080 is accessible from your reverse proxy
- Block direct external access to port 8080 if using a proxy
To modify the landing page:
- Edit
index.htmlfor content changes - Modify
server.pyfor server configuration - Rebuild:
docker-compose up -d --build
# Check logs
docker-compose logs
# Check if port is in use
lsof -i :8080# Test health endpoint
curl http://localhost:8080/health
# Check container status
docker-compose ps# Ensure proper permissions
chmod +x deploy.sh
sudo chown -R $USER:$USER .- Container runs as non-root user
- Security headers implemented
- CORS configured for risk-agents.com domains
- Health check endpoint available at
/health - No sensitive data exposed in logs