Overview
This AMI provides a fully automated, production-ready deployment of Discourse, the leading open-source discussion platform. It comes preconfigured with Docker Compose, PostgreSQL, Redis, and Apache for reverse proxy management - enabling a seamless installation experience.
Upon the first boot, the instance automatically detects your server IP, guides you through domain mapping, verifies DNS resolution, and provisions a free Let's Encrypt SSL certificate. All environment variables and credentials are managed securely via .env files for simplicity and reusability.
This image is ideal for developers, communities, and businesses who want a ready-to-run Discourse instance without complex setup or configuration steps.
Key Features:
Docker-based deployment for easy management and portability
Automated SSL certificate issuance and renewal with Certbot
Persistent PostgreSQL and Redis data volumes
Guided first-boot setup with automatic domain, email, and password configuration
Optimized for quick and reliable setup on AWS EC2
Highlights
- One-Click Discourse Deployment - Launch, set your domain, and your Discourse instance is ready in minutes.
- Automated SSL + DNS Validation - Secure HTTPS setup powered by Let's Encrypt and integrated Apache configuration.
- Persistent & Self-Healing Stack - Data-safe setup using Docker volumes with built-in health checks for Postgres and Redis.
Details
Unlock automation with AI agent solutions

Features and programs
Financing for AWS Marketplace purchases
Pricing
Vendor refund policy
This product is currently offered free of charge on AWS Marketplace. Since there are no fees associated with the use of this AMI, refunds are not applicable.
Buyers may cancel use of the product at any time by terminating the associated Amazon EC2 instance.
For any questions or concerns, please contact: Perimattic.com Email: aws@perimattic.comÂ
How can we make this page better?
Legal
Vendor terms and conditions
Content disclaimer
Delivery details
64-bit (x86) Amazon Machine Image (AMI)
Amazon Machine Image (AMI)
An AMI is a virtual image that provides the information required to launch an instance. Amazon EC2 (Elastic Compute Cloud) instances are virtual servers on which you can run your applications and workloads, offering varying combinations of CPU, memory, storage, and networking resources. You can launch as many instances from as many different AMIs as you need.
Version release notes
- Initial stable release of the preconfigured Discourse AMI for AWS Marketplace.
- Automated first-boot setup script for domain mapping, admin configuration, and environment variable generation.
- Integrated Docker Compose stack including Discourse, PostgreSQL, and Redis.
- Persistent storage configured for PostgreSQL, Redis, and Discourse logs to ensure data durability.
- Apache2 reverse proxy preconfigured with automatic domain mapping support.
- Let's Encrypt SSL automation for secure HTTPS deployment via Certbot.
- Health checks for PostgreSQL and Redis containers to ensure reliable startup.
- Automatic admin credential generation with secure password handling in .env.
- Graceful restart and retry logic included in failsafe scripts to handle setup interruptions.
- Optimized for AWS EC2 deployment, enabling quick launch, minimal setup time, and production-ready security defaults.
Additional details
Usage instructions
-
Launch an Instance
From AWS Marketplace, click Continue to Subscribe and then Continue to Configuration.
-
Choose the Recommended Instance Type
Select t2.medium or larger for optimal performance and stability.
-
Configure Security Group
Allow inbound traffic on the following ports:
- 22 (SSH) - for secure terminal access
- 80 (HTTP) - for initial setup and SSL verification
- 443 (HTTPS) - for secure Discourse access
-
Connect to the Instance
ssh -i <your-key.pem> ubuntu@<public-ip>
-
First-Boot Setup
On the first launch, initialization scripts automatically perform the following actions:
- Detect your server's public IP address
- Prompt for your Discourse domain name (e.g., forum.example.com)
- Validate your DNS A record to confirm it resolves correctly
- Request an admin email for login, SSL, and notifications
- Automatically generate a secure admin password
- Configure Apache virtual host and enable HTTPS
- Deploy the Discourse stack using Docker Compose with PostgreSQL and Redis
-
Configure DNS
- Add an A record in your DNS provider pointing your chosen domain (e.g., forum.example.com) to your instance's public IP.
- The setup will automatically verify DNS propagation across global resolvers before continuing.
-
Automatic SSL Setup
- Once DNS is verified, Certbot automatically issues and installs a free Let's Encrypt SSL certificate.
- Apache is then reconfigured to serve Discourse securely over HTTPS.
-
Start or Restart Services
The Discourse stack starts automatically on boot. To verify or manually restart services:
cd /opt/app docker compose ps docker compose restart
-
Access Discourse
https://<your-domain>
-
Login Credentials
Default credentials are stored in the environment file:
cat /opt/app/.env
- Admin Username: root
- Admin Email: (value of ADMIN_EMAIL)
- Admin Password: (value of ADMIN_PASSWORD)
-
Environment File
All configuration details - domain, admin email and credentials are stored in:
/opt/app/.env
Support
Vendor support
For any assistance or inquiries, our dedicated support team is here to help 24/7. Feel free to reach out to us anytime. Email: support@cro-digital.co.uk We are committed to providing timely and effective solutions to meet your needs.
AWS infrastructure support
AWS Support is a one-on-one, fast-response support channel that is staffed 24x7x365 with experienced and technical support engineers. The service helps customers of all sizes and technical abilities to successfully utilize the products and features provided by Amazon Web Services.