Ubuntu + nginx Cloud
Use this if you have an Ubuntu server. You run the app in Docker. Nginx is the door on ports 80 and 443. It forwards traffic to the app.
The app still listens on 127.0.0.1:2000. That is the website and the API together.
You still need MongoDB. That is the database. Docker does not start it for you.
When Docker builds the app, it clones GitHub. It does not use folders on your laptop.
Agent Workspace is optional. Do steps 1 to 8 to run the app. Do steps 9 to 12 only if you want the agent desktop.
What you need
- An Ubuntu server you can SSH into
- Docker on that server
- A MongoDB URL
- A domain name (for HTTPS)
Steps
App (required)
- Install nginx
- Run MongoDB or use Atlas
- Run the app container on port 2000
- Create the nginx site file
- Enable the site
- Test and reload nginx
- Add HTTPS with certbot
- Open the site and add an AI key
Agent Workspace (optional)
- Run the workspace container
- Add nginx for the workspace
- Test and reload nginx again
- Connect workspace in Settings
Start here: Step 1.