Docker
docker load < xormon-ng-docker-<version>.tar.gz
image: xorux/xormon-ng:latestto this:
image: xormon:<version>Note: It is important that you keep the formatting of the .yml file the same as original, otherwise it won't work.
docker compose up -d
cd ~/xormon-ng vi .envFile contents
APP_PORT=8443 TZ=<timezone> DB_HOST=timescaledb DB_PORT=5432 DB_USERNAME=postgres DB_PASSWORD=<db_password> DB_DATABASE=xormon APP_DEBUG=false APP_SECRET=<xormon-secret>Replace <variables> with values:
cd ~/xormon-ng vi docker-compose.ymlfile contents (copy/paste)
services: timescaledb: image: timescale/timescaledb:latest-pg16 init: true restart: unless-stopped ulimits: core: 0 environment: - POSTGRES_USER=${DB_USERNAME} - POSTGRES_PASSWORD=${DB_PASSWORD} - TZ=${TZ} volumes: - ./data:/var/lib/postgresql/data ## uncomment if you want to have Postgres (TSDB) port opened on host # ports: # - '5432:5432' xormon: image: xorux/xormon-ng:latest init: true restart: unless-stopped ulimits: core: 0 depends_on: - timescaledb env_file: .env volumes: - ./files:/usr/src/app/server-nest/files ports: - ${APP_PORT}:${APP_PORT} - 8162:8162
docker compose up -d
https://<docker_vm_IP>:8443/Default login: xormon / xormon
docker compose pull docker compose up -d
mkdir -p /var/xormon-ng/data mkdir -p /var/xormon-ng/files
docker run --init -v /var/xormon-ng/data:/var/lib/postgresql/data \ -d --name timescaledb -p 5432:5432 \ -e POSTGRES_PASSWORD=<db_password> -e TZ=<timezone> timescale/timescaledb:latest-pg16
cd /var/xormon-ng vi ./xormon-ng.envfile contents (copy/paste)
APP_PORT=8443 TZ=<timezone> DB_HOST=timescaledb DB_PORT=5432 DB_USERNAME=postgres DB_PASSWORD=<db_password> DB_DATABASE=xormon APP_SECRET=<xormon-secret>Replace <variables> with values:
docker run --init -d --name xormon --ulimit core=0 -p 8443:8443 \ -v /var/xormon-ng/files:/usr/src/app/server-nest/files \ --link timescaledb:timescaledb --env-file ./xormon-ng.env xorux/xormon-ng:latest
https://<docker_vm_IP>:8443/Default login: xormon / xormon
docker rm -f {UUID|name} docker run --init -d --name xormon --ulimit core=0 -p 8443:8443 \ -v /var/xormon-ng/files:/usr/src/app/server-nest/files \ --link timescaledb:timescaledb --env-file ./xormon-ng.env xorux/xormon-ng:latest