Install without containers#
Empowerment Center can also be installed without Docker: the backend as a system Java service and the web application on a web server that acts as a reverse proxy. This page explains what changes compared with the installation with Docker Compose.
Before you start#
- A JRE 25 on the backend server.
- The application file,
ecenter-8.0.0.jar. - The web application files (the
browserfolder of the frontend build). - The own database: a PostgreSQL 18 with PostGIS 3.6 prepared as described in Requirements (a user who owns the database without being a superuser, and the
postgisandpg_trgmextensions) or, if you want it in Oracle, a schema prepared as described in The own database in Oracle. - A web server (nginx, Apache, HAProxy…) with the TLS certificate.
1. The backend#
- Create an unprivileged system user for ECenter (for example,
ecenter) and a folder for it (/opt/ecenter). - Copy the jar there.
-
Create an environment file readable only by that user (
/etc/ecenter/ecenter.env, permissions 600) with the variables from Environment variables and, in addition, these, whichcompose.yamlset in Docker Compose:Variable Example What for ECENTER_DB_URLjdbc:postgresql://bd.example.org:5432/ecenterThe own database. Without it the backend does not start. With the own database in Oracle, jdbc:oracle:thin:@//bd.example.org:1521/service.ECENTER_DB_USERecenterIts user. Without it the backend does not start. ECENTER_DB_PASSWORDIts password. Without it the backend does not start. SERVER_PORT8080The backend port, if it is not 8080. SERVER_FORWARD_HEADERS_STRATEGYframeworkSo that it reads the original scheme, name and address from the proxy's X-Forwarded-*: the identity provider's return addresses and secure cookies behind TLS come from there.ECENTER_EMBEDDING_INDEX_LOCATIONfile:/srv/ecenter/frontend/index.htmlThe web application's index.html, which the backend serves to embedding.ECENTER_INSTANCE_NAMEecenter-1A fixed name for the instance. By default it is the machine's. JAVA_TOOL_OPTIONS-Xmx3g -XX:+ExitOnOutOfMemoryErrorThe JVM heap (see the warning below). -
Start it as a system service that runs, with that user and that environment file:
An example with systemd, best adapted (the path of the JRE 25, the user and the folders):
# /etc/systemd/system/ecenter.service
[Unit]
Description=Empowerment Center
Wants=network-online.target
After=network-online.target
[Service]
User=ecenter
WorkingDirectory=/opt/ecenter
EnvironmentFile=/etc/ecenter/ecenter.env
ExecStart=/usr/bin/java -jar /opt/ecenter/ecenter-8.0.0.jar
SuccessExitStatus=143
TimeoutStopSec=45
Restart=on-failure
[Install]
WantedBy=multi-user.target
TimeoutStopSec=45 lets the backend finish the requests and jobs in progress in an orderly way when stopping it, and SuccessExitStatus=143 makes systemd not take the JVM exit after SIGTERM as a failure.
Your own application.yml goes in /opt/ecenter/config/application.yml (the config folder of the working directory) and is read in addition to the application's (see Configuration).
Important
Without a container memory limit, the JVM would take for its heap a share of all the machine's memory. Set the heap with -Xmx (for example, -Xmx3g on a 4 GB machine dedicated to the backend) and leave room for the own database and the headless browser if they are on the same machine. The memory alert of the operations console is measured against that maximum.
2. The web application and the proxy#
- Copy the web application files to a folder of the web server (
/srv/ecenter/frontend/). - Configure the web server as described in Another web server instead of the frontend: the paths that go to the backend, the fallback to
index.html, the headers, the timeouts and the maximum body size. - The nginx configuration of the frontend image is a starting point:
frontend/nginx/ecenter.conf.templateandfrontend/nginx/security-headers.conf, replacing the${ECENTER_…}variables with their values. - If you want the manuals at
/ayuda/(the application's Help menu opens them), build them withmanuales/construir.shand serve them as described in that same section, withfrontend/nginx/help-headers.conffor their headers.
3. Start and check#
- Start the backend service and follow its log. The first time it creates the schema of the own database and the first administrator.
- Check
https://ecenter.example.org/api/about: it must respond with the version. - Continue with The license and First start and go-live.
The backend logs to standard output. With systemd, its lines go to the journal (journalctl -u ecenter), which has its own rotation.
Optional services#
The headless browser and the routing engine are tested as container images (chromedp/headless-shell and valhalla-scripted). If you cannot run them, leave them off: ECenter works without them (see Optional services). For the routing engine, the OpenRouteService cloud service also works.