Docker - ssh key
ls -la /var/xormon-ng/ssh-keys drwx------ 2 root root 76 Jan 30 2023 . dr-xr-x---. 26 root root 4096 Jan 17 12:34 .. -rw------- 1 root root 419 Jan 17 12:34 id_ed25519 -rw-r--r-- 1 root root 104 Jan 17 12:34 id_ed25519.pub
ssh -i /var/xormon-ng/ssh-keys/id_ed25519 <device user>@<device IP/hostname>
docker run --init -d --name xormon --ulimit core=0 -p 8443:8443 \ -v /var/xormon-ng/files:/app/server-nest/files \ -v /var/xormon-ng/ssh-keys:/root/.ssh \ --link timescaledb:timescaledb --env-file ./xormon-ng.env xorux/xormon-ng:latest
ls -la ./ssh-keys drwx------ 2 root root 76 Jan 30 2023 . dr-xr-x---. 26 root root 4096 Jan 17 12:34 .. -rw------- 1 root root 419 Jan 17 12:34 id_ed25519 -rw-r--r-- 1 root root 104 Jan 17 12:34 id_ed25519.pub
ssh -i ./ssh-keys/id_ed25519 <device user>@<device IP/hostname>
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:/app/server-nest/files - ./ssh-keys:/root/.ssh ports: - ${APP_PORT}:${APP_PORT} - 8162:8162