How to Self-Host Rallly using Docker
git
installed you can download the repo using curl
config.env
.
This is where you can set your environment variables to configure your instance.
This guide will go through the basics but, you can check out the full list of configuration options in the self-hosting docs.
Start by generating a secret key. Must be at least 32-characters long.
config.env
and set SECRET_PASSWORD
to your secret key.
Next, set NEXT_PUBLIC_BASE_URL
. It should be the base url where this instance is accessible, including the scheme (eg. http://
or https://
), the domain name, and optionally a port. Do not use trailing slashes or URLs with paths/subfolders..
SUPPORT_EMAIL
. Your users will see this as the contact email for any support issues and it will also appear as the sender of all emails.
Next, use the following environment variables to configure your SMTP server:
SMTP_HOST
- The host address of your SMTP serverSMTP_PORT
- The port of your SMTP serverSMTP_SECURE
- Set to “true” if SSL is enabled for your SMTP connectionSMTP_USER
- The username (if auth is enabled)SMTP_PWD
- The password (if auth is enabled)ALLOWED_EMAILS
.
If only you are planning on using this instance you can set ALLOWED_EMAILS
to your email address.
- 3000:3000
to - 127.0.0.1:3000:3000
in docker-compose.yml
and restart the container for it to apply the changes. This prevents Rallly from being accessed remotely using HTTP on port 3000 which is a security concern.
latest
to get the most recent release but it is recommended that you pin the image to a major version to avoid accidentally pulling in breaking changes.
You can set the version in docker-compose.yml
by changing the following line:
lukevella/rallly:3
) to avoid pulling in breaking changes.
docker-compose.yml
: