I have no experience on hosting, Could you help me to use DigitalOcean services in an effective way.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Heya,
Well, it might be a bit too much for everything but using some docker images it should be doable.
Here are some steps how to do that.
1. Create a Droplet
Go to DigitalOcean dashboard
Click “Create” → “Droplet”
Choose Ubuntu 24.04 (good choice, latest and stable)
Choose a cheap plan (like $4 or $6/month) to start
Add your SSH key if you have one (or use password login for now)
2. Log into Your Droplet
From your local machine:
3. Install Docker
Once inside the droplet, install Docker:
Also install Docker Compose (helpful for multi-container apps):
4. Create a
docker-compose.yml
In your project folder (
/home/youruser/app
or wherever):Folder structure:
5. Example
Dockerfile
for backend (backend/Dockerfile
)Same idea for frontend (you may want
npm run build
thennpm run start
for production).6. Start everything
From the project folder:
Now:
Frontend is on
http://your_droplet_ip:3000
Backend is on
http://your_droplet_ip:4000
PostgreSQL at
localhost:5432
Elasticsearch at
localhost:9200
Tips for production:
Install Nginx and set up reverse proxy to serve frontend and backend on ports 80/443.
Use Certbot to get HTTPS certificates.
Consider volumes for data persistence (already in the compose).
Monitor RAM and CPU — especially Elasticsearch memory.