How do I create Discourse forum with docker and VPS?

Hello :anxious_face_with_sweat:
As far as I understand, Russian cards are not accepted so that you can buy forum support, this is sad :anxious_face_with_sweat:

I am new to programming.

I tried to install a VPS server. Ubuntu 24.04
Installed docker.
But I can’t access my website.
It seems to me that the problem is in the yml settings.
I don’t know what to write there, I’m trying to figure out what it is, but I don’t understand. Where can I read about SMTP_ADRESS, SMTP_PASSWORD, SMTP_PORT.
I read an article on the forum about the doctor.
Maybe someone has a simple guide explaining where to get these values?

I also bought hosting and a domain, but I can’t figure out how to work with mail.
I’m already confused by these meanings.

Maybe someone has a link to explanations for this file and where to get these values ​​in the domain?

Sorry for my English

please follow the standard install instructions carefully.

also more email setup and troubleshooting info here:

6 Likes

Being self-hosted you will need an smtp provider.

Has a free tier of 300 messages/day. SMTP account on this one is the email you signed up with and the password is your account password.

As lilly has mentioned and provided links to the official install instructions

But to give you an easier answer to connecting to your domain.

You will need to setup a DNA record on your domain server.

This is an ‘A’ record the first is the subdomain name ie “community” the data is your VPs server ip address.

This is in the official install instructions however at times ppl miss this

1 Like

I have a hosting service for mail. The hosting on which I hosted the domain.

I went to the hosting management, where I placed the domain in DNS management.

I added my domain and the IP of my server there (in red).
In blue, these are the added hosting domains.

When I complete the setup using ./discourse-setup, I get this:

It’s almost done!
The domain has been successfully linked to the hosting
The site was created in the control panel, it remains to place the site files
server292.hosting.reg.ru

I can’t figure out what to do in this case.

Now I see this:

Welcome to nginx!

If you see this page, the nginx web server is successfully installed and working. Further configuration is required.

For online documentation and support please refer to nginx.org.
Commercial support is available at nginx.com.

Thank you for using nginx.


It’s cool.
I wrote this command: ./launcher rebuild app

Different messages are shown through different browsers:
Is this how it should be?

Google shows:
If you see this page, the nginx web server is successfully installed and working. Further configuration is required.

For online documentation and support please refer to nginx.org.
Commercial support is available at nginx.com.

I always pressed the command: ./discourse-setup.
On my server, the memory grew to 11 GB.
Is this normal, or did I need to press other commands, it feels like I installed the same thing over and over again.

As it says congrats you are good to go. The account you register will be the admin account iirc.

Typically don’t need to worry about nginx unless your running other web apps on the server. That is currently out of my XP.

From here you can start working on setting up your discourse.