Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Hermes Workspace on Your Own VPS: Setup Guide

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

This guide walks you through setting up a Hermes workspace on your own VPS, giving you a self-hosted environment for managing your projects and tasks. You'll end up with a fully functional Hermes instance accessible via your domain, secured with HTTPS. Before starting, ensure you have a VPS with a public IP, a domain name pointing to it, and SSH access.

What You'll Need

  • A VPS running Ubuntu 22.04 or 24.04 (other Linux distros work but steps may vary)
  • A domain name (e.g., hermes.example.com) with an A record pointing to your VPS's IP
  • SSH client (Terminal on macOS/Linux, PuTTY on Windows)
  • Basic comfort with command line

Step-by-Step

  1. Connect to your VPS – SSH into your server as a user with sudo privileges. For example: ssh user@your-server-ip.
  2. Update system packages – Run sudo apt update && sudo apt upgrade -y to ensure all existing software is current.
  3. Install Docker and Docker Compose – Hermes is easiest to run in containers. Install Docker with curl -fsSL https://get.docker.com | sh, then add your user to the docker group: sudo usermod -aG docker $USER. Log out and back in for changes to take effect. Verify with docker --version.
  4. Create a directory for Hermes – Run mkdir ~/hermes && cd ~/hermes to keep everything organized.
  5. Create a docker-compose.yml file – Use a text editor (nano or vim) to create docker-compose.yml with the following content. Replace yourdomain.com with your actual domain.
    version: '3.8'
    services:
      hermes:
        image: hermesworkspace/hermes:latest
        container_name: hermes
        restart: unless-stopped
        ports:
          - "8080:8080"
        volumes:
          - ./data:/data
        environment:
          - HERMES_DOMAIN=yourdomain.com
          - HERMES_PORT=8080
        
  6. Start Hermes – Run docker compose up -d. This pulls the image and starts the container. Check logs with docker logs hermes to ensure it started correctly.
  7. Install Nginx as a reverse proxy – Run sudo apt install nginx -y. This will handle HTTPS and route traffic to Hermes.
  8. Configure Nginx – Create a new site config: sudo nano /etc/nginx/sites-available/hermes. Add the following, replacing yourdomain.com:
    server {
        listen 80;
        server_name yourdomain.com;
        location / {
            proxy_pass http://127.0.0.1:8080;
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;
        }
    }
        
    Enable the site with sudo ln -s /etc/nginx/sites-available/hermes /etc/nginx/sites-enabled/, test config with sudo nginx -t, then reload with sudo systemctl reload nginx.
  9. Set up SSL with Let's Encrypt – Install Certbot: sudo apt install certbot python3-certbot-nginx -y. Then run sudo certbot --nginx -d yourdomain.com and follow the prompts. This automatically configures HTTPS and renews certificates.
  10. Access your Hermes workspace – Visit https://yourdomain.com in your browser. You should see the Hermes login page. The default admin credentials are usually printed in the logs (run docker logs hermes to find them). Change them immediately after first login.
  11. Configure firewall (optional but recommended) – If you use UFW, allow SSH and HTTPS: sudo ufw allow OpenSSH, sudo ufw allow 'Nginx Full', then enable with sudo ufw enable.

Common Mistakes

  • Forgetting to point DNS – If you skip the A record, the domain won't resolve to your VPS, and you'll get a connection error.
  • Port conflicts – If port 8080 is already in use, change the host port in docker-compose.yml (e.g., "8081:8080") and update Nginx accordingly.
  • Not updating the domain in Nginx – Using the wrong server_name will cause Nginx to serve the default site instead of proxying to Hermes.
  • SSL certificate failure – Certbot will fail if the domain doesn't point to your server or if port 80 is blocked. Ensure DNS and firewall are correct.
  • Ignoring logs – If something doesn't work, check docker logs hermes and sudo tail -f /var/log/nginx/error.log for clues.

Tips

  • Use a dedicated subdomain – Like hermes.yourdomain.com to keep it separate from your main site.
  • Back up the data directory – The ./data folder contains all your workspace data. Regularly copy it to a safe location.
  • Keep Docker images updated – Periodically run docker compose pull and docker compose up -d to get the latest version.
  • Set up automatic backups – Use a cron job to tar the data folder and upload to cloud storage or another server.
  • Monitor resource usage – Hermes is lightweight, but if you run many projects, watch RAM and CPU with htop or docker stats.

Troubleshooting

  • Can't access the site – First check if Hermes is running: docker ps. Then check Nginx: sudo systemctl status nginx. If both are fine, try accessing via IP: http://your-server-ip:8080 – if that works, the problem is DNS or Nginx.
  • SSL certificate not renewing – Check that port 80 is open and Nginx is running. Certbot needs to verify your domain via HTTP. Run sudo certbot renew --dry-run to test.
  • Hermes container keeps restarting – View logs: docker logs hermes. Common issues include the data directory not writable or the domain environment variable set incorrectly.
  • 502 Bad Gateway from Nginx – This means Nginx can't reach Hermes. Ensure the proxy_pass port matches the host port in docker-compose. Also check that the container is listening: curl http://127.0.0.1:8080 from the server.
  • Forgot admin password – Reset it by stopping the container, removing the data volume (careful, this erases all data), and starting fresh. Alternatively, look for a reset command in the Hermes documentation.

Frequently Asked Questions

What is Hermes workspace?

Hermes is a self-hosted project management and collaboration tool. It lets you organize tasks, documents, and team communication on your own server, giving you full control over your data.

Do I need a domain name?

Technically no, you can access via IP, but for HTTPS and a professional setup, a domain is strongly recommended. Certbot requires a domain to issue SSL certificates.

Can I run Hermes on a Raspberry Pi?

Yes, as long as the Pi runs a 64-bit OS and Docker is installed. Performance may be limited for heavy usage, but it works for personal or small team use.

How do I update Hermes?

Navigate to your hermes directory and run docker compose pull followed by docker compose up -d. This will fetch the latest image and recreate the container without losing data.

Is Hermes free?

Yes, Hermes is open-source and free to self-host. You only pay for your VPS and domain.

What if I want to use a different port?

Change the host port in docker-compose.yml (e.g., "9090:8080") and update the Nginx proxy_pass to http://127.0.0.1:9090. Then restart the services.