Skip to content
Edit this page

Aurion Installation Tutorial with Docker

Aurion Orchestra with Docker

  • create a directory on your machine and put inside the docker-compose.yml and env file. Edit them (at least env file).
  • rename .env.docker.example to .env
  • docker compose up
  • you will see in logs the migrations for hydra and Aurion API happening. At the end, you whould see something like this
    2026/08/23 11:48:20 ==================================================
    2026/08/23 11:48:20      Starting Aurion Orchestrator Binary          
    2026/08/23 11:48:20 ==================================================
    2026/08/23 11:48:20 [main] Config loaded. Domain: aurionmail.org, DataDir: /home/aurion/orchestra, ProxyPort: 8090
    2026/08/23 11:48:20 [runner] Unpacking runtime assets to /home/aurion/orchestra/runtime...
    2026/08/23 11:48:23 [main] Starting child services...
    2026/08/23 11:48:23 [runner] Started service hydra (PID: 320466)
    2026/08/23 11:48:23 [runner] Started service core-api (PID: 320467)
    2026/08/23 11:48:23 [runner] Started service sso (PID: 320468)
    2026/08/23 11:48:23 [runner] Started service cryptpad (PID: 320470)
    2026/08/23 11:48:23 [runner] Started service webmail (PID: 320473)
    2026/08/23 11:48:23 [main] Reverse Proxy listening on http://127.0.0.1:8090
    2026/08/23 11:48:23 [core-api] (ERR) 2026/08/23 11:48:23 PostgreSQL database connection successful
    2026/08/23 11:48:23 🚀 aurion-api server started on http://localhost:8070 (production)
    2026/08/23 11:48:23 [hydra] Thank you for using Ory Hydra v26.2.0!
    2026/08/23 11:48:23 [hydra] (ERR) time=2026-08-23T11:48:23Z level=info msg=No tracer configured - skipping tracing setup audience=application service_name=Ory Hydra service_version=v26.2.0
    2026/08/23 11:48:23 [hydra] (ERR) time=2026-08-23T11:48:23Z level=info msg=Software quality assurance features are enabled. Learn more at: https://www.ory.sh/docs/ecosystem/sqa audience=application service_name=Ory Hydra service_version=v26.2.0
    2026/08/23 11:48:23 [hydra] (ERR) time=2026-08-23T11:48:23Z level=info msg=Setting up http server on 0.0.0.0:4444 audience=application service_name=Ory Hydra service_version=v26.2.0
    time=2026-08-23T11:48:23Z level=warning msg=HTTPS is disabled. Please ensure that your proxy is configured to provide HTTPS, and that it redirects HTTP to HTTPS. audience=application service_name=Ory Hydra service_version=v26.2.0
    2026/08/23 11:48:23 [hydra] (ERR) time=2026-08-23T11:48:23Z level=info msg=Setting up http server on 0.0.0.0:4445 audience=application service_name=Ory Hydra service_version=v26.2.0
    time=2026-08-23T11:48:23Z level=warning msg=HTTPS is disabled. Please ensure that your proxy is configured to provide HTTPS, and that it redirects HTTP to HTTPS. audience=application service_name=Ory Hydra service_version=v26.2.0
    2026/08/23 11:48:23 [webmail] â–² Next.js 16.2.11
    2026/08/23 11:48:23 [webmail] - Local:         http://localhost:3000
    - Network:       http://0.0.0.0:3000
    ✓ Ready in 0ms
    2026/08/23 11:48:23 [sso] Listening on http://0.0.0.0:3030
    2026/08/23 11:48:23 [webmail] Bulwark Webmail v1.8.1
    2026/08/23 11:48:24 [cryptpad] =============================
    2026/08/23 11:48:24 [cryptpad] Create your first admin account and customize your instance by visiting
    https://pad.aurionmail.org/install/#af8fcb1157b35a8dbc7ac956e62ccfa1427d2fcb16428b4aafa9e61cdd115485
    =============================
    2026/08/23 11:48:24 [webmail] [INFO ] 2026-08-23T11:48:24.337Z Admin dashboard disabled (no ADMIN_PASSWORD set)
    Admin dashboard initialized
    2026/08/23 11:48:24 [webmail] 
    ==============================================================
      SETUP REQUIRED
      Token: b30214eb5c73587183d8086cdf5ba68bd21cbd6c40290bb0e948a00dd1384500
      Open:  http://<host>:3000/setup?token=b30214eb5c73587183d8086cdf5ba68bd21cbd6c40290bb0e948a00dd1384500
      Token expires in 1 hour. Restart the container to reissue.
    ==============================================================
    
    2026/08/23 11:48:24 [webmail] [INFO ] 2026-08-23T11:48:24.357Z telemetry: scheduler not started {"consent":"off"}
    2026/08/23 11:48:24 [webmail] [INFO ] 2026-08-23T11:48:24.370Z version-check: scheduler started {"nextInMs":30000}
    
  • You see a link to finsih installing of cryptpad and Bulwark, use it now to do that without https ou wait for nginx conf to be enabled.
  • you will see a link to finish install of Bulwark webmail, use it

Mandatory Secret

After the first launch, visit /conf to get a secret you can use in the .env. Then restart. If you don't do that, a default value will be used. it is ok for testing but not advised at all in production !

Reverse Proxy

  • run
    certbot certonly --webroot \
       -w /var/www/html \
       -d sand.DOMAIN_REPLACE_ME \
       -d pad.DOMAIN_REPLACE_ME \
       -d web.DOMAIN_REPLACE_ME \
       -d api.DOMAIN_REPLACE_ME \
       -d openpgpkey.DOMAIN_REPLACE_ME \
       -d oauth.DOMAIN_REPLACE_ME \
       -d sso.DOMAIN_REPLACE_ME
    
  • run openssl dhparam -out /etc/nginx/dhparam.pem 4096 if needed.
  • add this in http bloc in /etc/nginx/nginx.conf :
    map $http_upgrade $connection_upgrade {
            default upgrade;
            ''      close;
        }
    
  • edit NGINX conf file and enable it with sudo ln -s /etc/nginx/sites-available/aurion_orchestra.conf /etc/nginx/sites-enabled/
  • sudo nginx -t
  • sudo systemctl reload nginx
  • If you waited to finish installing Bulwark and Cryptpad, relaunch orchestra and finish setup.

Configure Auth

Config clients

Bulwark Setup (Aurion PGP Plugin)

AurionMail uses a dedicated PGP plugin for Bulwark Webmail to manage end-to-end encryption for emails and Cryptpad documents.

  1. Download from the latest release :
  2. index.js
  3. manifest.json

  4. Edit manifest.json and replace placeholder domains with your production endpoints:

    "httpOrigins": [
      "https://keys.openpgp.org",
      "https://api.DOMAIN_REPLACE_ME"
      "https://sso.DOMAIN_REPLACE_ME"
    ],
    "frameOrigins": [
      "https://pad.DOMAIN_REPLACE_ME"
      "https://sso.DOMAIN_REPLACE_ME"
    ]
    

  5. Compress both index.js and manifest.json into a single .zip archive, with zip -X aurion_pgpe2e.zip manifest.json index.js
  6. Go to https://web.DOMAIN_REPLACE_ME/admin and upload the archive via the Bulwark administration panel.
  7. Enable, enforce the plugin and update its settings with your API, OAuth, and Pad URLs (without trailing / at the end).

Bulwark Setup (Calendar Plugin)

Just go to the marketplace on admin UI and download the Calendar True End to End plugin. There is no need to edit manifest or upload manually this time.

And now ?

You can go to usage.md.