Deploy Relvy application on EC2 instance using Docker
.env
file:
Variable | Description | Required | Example |
---|---|---|---|
SERVER_HOSTNAME | Your domain name | Yes | relvy.yourcompany.com |
POSTGRES_PASSWORD | Database password | Yes | SecurePassword123! |
POSTGRES_ENDPOINT | RDS endpoint | Yes | relvy-db.xxxxx.us-west-2.rds.amazonaws.com |
POSTGRES_USER | Database username | No (default: postgres) | postgres |
POSTGRES_DB | Database name | No (default: relvydb) | relvydb |
SLACK_CLIENT_ID | Slack app client ID | No | 123456789.123456789 |
SLACK_CLIENT_SECRET | Slack app client secret | No | abc123def456... |
https://yourdomain.com
Issue | Solution |
---|---|
Docker permission denied | Log out and back in, or run newgrp docker |
Database connection failed | Verify RDS endpoint and security group rules |
Application not starting | Check logs with docker-compose logs -f |
Domain not accessible | Verify DNS records and load balancer configuration |
SSL certificate errors | Check certificate validation and ALB configuration |