====== Vibemosphere Docker Composer ====== Systems of containers from JSON image descriptions (ELO, Paperless, VECDS, PIMIA, databases): docker-compose.yml, up / stop / down, status and logs. ^ Id | ''docker-composer'' | ^ Role | ''admin'' - needed for the page and the REST API (administrators always may) | ^ Page | **Plugins > Open** (overlay with an X at the top right) or ''/plugins/docker-composer/'' | ^ REST | ''/api/plugins/docker-composer/...'' and, for callers with the role, ''/plugins/docker-composer/...'' | ^ Mount | ''/api/docker'' | ===== Open the configuration ===== In the administration open **Plugins**, select the row of this plug-in and press **Open**. The page opens in an overlay dialog: close it with the **X** at the top right, with Esc or by clicking outside; //Open in a new tab// next to the title shows it full size. {{vibecat:plugin-docker-composer.png?900|Vibemosphere Docker Composer: the plug-in page in its overlay dialog}} ===== The page in detail ===== {{vibecat:plugin-docker-composer-full.png?900|docker-composer: first tab, Systems}} ===== Tabs ===== The page is divided into the tabs **Systems**, **Image descriptions**, **Registries and settings**. ==== Image descriptions ==== {{vibecat:plugin-docker-composer-tab2.png?900|docker-composer: tab Image descriptions}} ==== Registries and settings ==== {{vibecat:plugin-docker-composer-tab3.png?900|docker-composer: tab Registries and settings}} ==== Dialog: New system ==== {{vibecat:plugin-docker-composer-dialog.png?900|Vibemosphere Docker Composer: the dialog of "New system"}} ===== Fields and columns ===== ^ Label ^ Meaning ^ | Database name | | | Database user | | | Database password (empty: generated when saved) | | | Database | | | Database system | | | Database of the system | | | Host port | | | Existing host | | | Password | | | Registry of the images made here ( ${registry} ) | | | Folder | | | Network | | | Service | | | Default registry (for systems without their own choice) | | | Folder of new systems | | | Type | | | Name | | | Registry | | | Database password (empty: generated) | | | Address (host:port) | | | Login | | | User name | | | Secret / token | | | Pull images with | | | System | Column of a table | | Containers | Column of a table | | Container | Column of a table | | Image | Column of a table | | State | Column of a table | | Ports | Column of a table | | Id | Column of a table | | Group | Column of a table | | From | Column of a table | | Address | Column of a table | | Default | Column of a table | | Systems | Column of a table | ===== Actions ===== * **New system** * **Up** * **Stop** * **Start** * **Restart** * **Pull images** * **Down** * **Show** * **Generate** * **Save** * **Show docker-compose.yml** * **Write it** * **Status** * **Logs** * **Remove from the plug-in** * **Save as own / changed description** * **Delete the file (back to built in)** * **New description** * **New registry** * **Cancel** * **Create** * **Test the login** ===== Notes from the page ===== * host, user and password of that system (they share its network) * Drag containers into a network frame; every frame is written as its own docker-compose.yml (folder / network name / docker-compose.yml) and deployed as its own compose project. A container attached to a second network is declared there as an external network, so the networks are brought up in the right order. Show docker-compose.yml lists all files. * JSON: id, name, group, kind (service | database), service, image with ${placeholders}, parameters, options, ports, environment, dbEnvironment, volumes, dependsOn, restart. * Where the images come from. A user name with a password or a secret (access token) is used for docker login before Up and Pull. * The password / secret is stored in the data folder of the plug-in; empty keeps the stored one. ===== Reference ===== Describes **systems** - a database and the containers around it - writes their ''docker-compose.yml'' and runs ''docker compose up / stop / down / pull'' with the docker CLI of the computer that runs Vibecat. **Administrators only**: whoever controls Docker controls the computer. The images are **not in the code**: every image is a JSON file. ==== Image descriptions (JSON) ==== Built in (jar): ELO container services (core / IndexServer, WF, Search, Flows, SmartLink, ELOSync), Paperless NGX with Redis, Gotenberg and Tika, VECDS, PIMIA core, and the databases SQL Server, PostgreSQL, MariaDB and Oracle XE. Own files go to the folder ''images'' of the plug-in data folder (page: //Image descriptions//); a file with the id of a built in one replaces it, //Delete the file// brings the built in one back. System types (''systems'' folder) list the images of a kind of system. { "id": "elo-ix", "name": "Core (IndexServer)", "group": "ELO", "kind": "service", // kind: service | database "service": "core", // name in the compose file (and host name in the network) "image": "registry.elo.com/eck-services/ix:${version}", "parameters": { "version": "v25-0.2.3" }, // ${version}; changed per system on the page "ports": [ { "container": 9090, "host": "9090", "name": "IX" } ], "environment": { "ELO_SYSTEM_NAME": "${system.name}", "DATABASE_HOST": "${db.host}", "DATABASE_PASSWORD": "${db.password}" }, "volumes": [ { "id": "data_ix", "container": "/opt/elo/data/ix", "host": "${base}/data-ix" } ], "dependsOn": [ "db" ], "restart": "unless-stopped", "healthcheck": { "test": "curl -f http://localhost:9090/", "interval": "30s", "retries": 5 } } ^ placeholder ^ value ^ | ''${system.name}'', ''${base}'' | name and folder of the system (host folders of the volumes are created) | | ''${db.host}'' ''${db.port}'' ''${db.internalPort}'' ''${db.name}'' ''${db.user}'' ''${db.password}'' ''${db.edition}'' | the database of the system (service ''db'' when it is a new container, else the host you give) | | ''${registry}'' | the registry of the system (chapter Registries, e.g. ''myhost:5443/''): images made by the //Docker image builder// and pushed to the //Docker registry// plug-in | | ''${version}'' ... any parameter | the ''parameters'' of the description, changed per component on the page | === Options, database environment, volumes === Besides ports / environment / volumes a description can have: ^ field ^ meaning ^ | ''options'' | ''[{"key":"LICENSEE_NAME","label":"Licensee","type":"text%%|%%number%%|%%bool%%|%%password%%|%%select","default":"..","required":true,"hint":".."}]'': shown per component on the page (password options with //Generate//), written to the environment (name = ''env'' or the key), usable as ''${opt.KEY}'' | | ''dbEnvironment'' | ''{"postgres": {...}, "mariadb,mysql": {...}}'': environment added when the database of the system is of that kind (mariadb, mysql, postgres, sqlserver, oracle); ''${db.type}'', ''${db.adminUser}'', ''${db.adminPassword}'' are available | | ''imageByDb'' | the image follows the database (Zabbix: ''zabbix-server-mysql'' / ''zabbix-server-pgsql'') | | ''forDb'', ''dbOptional'', ''needsDatabase'' | the component fits only these databases (left out with a warning otherwise); ''dbOptional'': also without a database | | ports: ''when'', ''containerOption'', ''rangeOption'' | a port only when a bool option is on; the container port is an option (''PORT'', ''FTP_PORT''); an option holds a range (''30000-40000'') that is published 1:1 | | volumes: ''label'' | each volume can be set on the page: a folder of the host, or a plain name = Docker volume; empty = default | ==== System types ==== ^ type ^ contains ^ | Database system | PostgreSQL, MariaDB, MySQL, SQL Server or Oracle with database name, user and password; web interface: phpMyAdmin (MariaDB / MySQL, port 8082) and Adminer (all, 8083) | | n8n | n8n (5678) alone (SQLite), or with PostgreSQL: own container, **the database of another system** (same network, host ''-db'', start that system first), or an existing server | | Monitoring | Loki (''grafana/loki'', 3100) + Grafana (3000) and Zabbix: server (10051), web (8080), agent 2 (10050); the Zabbix images (''-mysql'' / ''-pgsql'') follow the chosen database (MariaDB / MySQL / PostgreSQL) | | Custom | A diagram: Docker networks as frames (name, subnet, gateway) and any containers of this plug-in (or free images) in them, with ports, environment, volumes, fixed IP addresses, extra networks and dependencies. **One docker-compose.yml per network** (''//docker-compose.yml'', project ''-''), deployed in the order the networks need each other. | | Vibemosphere | Vibecat, VECDS, PIMIA core; registry ''dr.issp.gmbh:5443'' | **VECDS** settings (all set through the environment of the image, ''VECDS\Docker\ENVIRONMENT.md''): licensee, port, public URL, administrator and password, IX interface, JSON interface (+ CORS origins), log level, FTP (''FTP_ENABLED'', ''FTP_PORT'' = control port, ''FTP_PASSIVE_PORTS'' e.g. ''30000-40000'' published 1:1, public address, postbox / archive access) and the two volumes ''/data'' and ''/documents''. With MariaDB / MySQL / SQL Server VECDS uses the administrator account of the database container (it makes ''eloarchive'' and ''eloam'' itself), with PostgreSQL / Oracle the database user. ==== Quick API: a database container in one call ==== At ''/api/docker/compose'' (web ports, role admin): ''?type=dbsystem&image=postgres&tag=latest&dbusername=postgres&dbpassword=...&dbname=app&dbport=auto&env.NAME=value'', as a query (GET) or as JSON (POST, preferred for passwords). It makes the system, writes the compose file, brings it up and waits for the healthcheck. ''exists=fail|reuse|update'', ''up=false'', ''wait=false'', ''timeout''. The answer has ''status'' (running, starting, failed ...), the containers and the connection (host, port, JDBC URL, name of the container in the network; a generated password once). ''GET /api/docker/compose/NAME'' shows it, ''DELETE /api/docker/compose/NAME?volumes=true'' removes it. A failed ''up'' names the cause: taken host port, unknown tag, registry rate limit, a container that stops after the start (with its log). ==== Registries ==== The chapter //Registries// (after Settings) lists the registries: name, address (''host:port''), login = none, **user name + password** or **secret** (access token; user name empty = ''token''), default flag. Each system chooses a registry (''${registry}'' = its address plus ''/''); //Up// and //Pull// run ''docker login'' with the stored login first (the password goes through ''--password-stdin''). //Test login// does the same by hand. Passwords / secrets are stored in ''registries.json'' of the data folder. ''dr.issp.gmbh:5443'' is added at the first start (user name and password still to enter). Passwords of databases and options are generated with the //Generate// button (letters, digits, ''- _ .'': safe in compose files, connection strings and shells). ==== Systems ==== //New system//: type (ELO, Paperless NGX, Vibemosphere = VECDS + PIMIA), name, database image, password (empty: generated and kept; shown only as "stored"). Per component: on / off, parameters (''version=v25-0.2.4''), host ports (''9090=19090'') and an image override. //Up// writes the compose file, creates the folders and runs ''docker compose -p name up -d'' as a job with a live log; //Status// shows ''docker compose ps''; //Logs// the tail of the log. An existing database (host name) can be used instead of a new container. The ELO images come from the ELO registry (''registry.elo.com''): ''docker login registry.elo.com'' with your ELO account on this computer first. ===== ELO on Oracle on a Linux server ===== * Database image **Oracle XE 21c (gvenzl)**, service ''XEPDB1''; the one-shot component creates the tablespaces ''ELOSYS'' and ''ELOLOGS''. * The ELO images need a sign-in at ''registry.elo.com'' (composer page, or ''docker login''). * The IndexServer needs the private key of the licence (''.pk''); without it the system is made but not started. * Check the published ports: Docker opens them past a host firewall. Bind the database to ''127.0.0.1'' (''"127.0.0.1:1521:1521"''). * The service user needs the group ''docker'' (see [[vibecat:plugins:system-info|System Info]]). ===== ELO: licence and database setup ===== * **Licence**: open the system, component //Core (IndexServer)// > Settings > //Licence//, choose the ''.pk'' file and press **Up**. * **Database setup**: //elo-setup// (default, the ELO setup container) or //vibecat// (container left out; **Deploy database** creates the Oracle databases with [[vibecat:plugins:ecm-deployment|ECM Database Deployment]], without default documents). ELO without the setup container is not verified, and only that container receives the licence. * New ELO systems publish the database on ''127.0.0.1'' only. * The web client is published on ''127.0.0.1:15090'': ''ssh -L 15090:localhost:15090 user@server''. ===== Component tabs and Containers ===== * An open system has the tab //General// (database, registry, folders) and one tab per component; its check box decides whether the component is part of the system. * The page tab //Containers// shows the systems with running containers and memory; choose a system for its containers with memory and CPU (refreshed every 10 s; MCP ''docker_containers''). * Oracle passwords: letters and digits only. ELO's setup rejects characters such as ''#'' with //Illegal identifier//. ===== Reverse proxy: Nginx + certbot ===== - **New system** > type //Reverse proxy (Nginx + certbot)//. - Enter the e-mail address and accept the Let's Encrypt Subscriber Agreement. - **Add forwarding**: host name (its DNS entry points to the server), path such as ''/Welser/'', start page, target (''welser-server:9090'', the Docker network is filled in). - Access: //restricted// with the allowed addresses (default) or //public//. Others get 403. - Optional: ''sub_filter'' lines (''search => replace''), persistent connections, WebSocket, largest upload. - **Save**, then **Up**. Ports 80 and 443 must be free and reachable. For ELO set //Core > Public address// to ''https://your.host'' and press **Up** on the ELO system. Open-source Nginx cannot pin connections to a client, so NTLM sign-in is not reliable through it. ===== Addresses of a system ===== **Info** lists the public addresses (through reverse proxies) and the ports published on the server. ===== Volumes ===== System tab //Volumes//, button **Browse**: the files of the volume in an overlay (upload, download, new, edit, rename, delete). ===== A second ELO system on the same Oracle ===== - Database = //Database of another system//; both share only a link network for the database. - Another repository name and another //Access manager database//. - //Host port offset// keeps the published ports apart. - **Up** on the owner first, then on the new system. [[vibecat:plugins:start|All plug-ins]] ===== Templates for ELO, n8n, Grafana / Loki ===== * **ELO ECM (ECK services)**: SQL Server 2025, repository setup (runs once, ''Exited (0)'' is normal), IndexServer, Flows registry and worker, Textreader 2 and optionally ELO Sync. Needs ''docker login registry.elo.com''. Set the passwords (Generate), the version and the licence private key once on the component **Core (IndexServer)**; the other components use them. All ELO containers run as user ''1001:0''; ports bind to 127.0.0.1 (15090 server, 15091 registry, 15092-15096 worker, 15100 TR2). * **Grafana / Loki**: Grafana is pre-wired to Loki (the data source file is written once next to the compose file and can be edited). * **n8n**: restricted file access (''N8N_RESTRICT_FILE_ACCESS_TO'', exchange folder ''/data/files''), time zone, healthcheck; SQLite or PostgreSQL. ===== Files, diagram and AI clients ===== * **Custom systems** are drawn as a diagram: network frames, containers, dependencies; every network becomes its own compose project. Predefined systems (Paperless, ELO ...) offer **Customize as diagram** and **Back to the form**. * **Files of volumes and folders** (link below the title) browses the Docker volumes and mounted folders of a system. * The [[vibecat:plugins:mcp|MCP server]] makes, starts, stops and inspects systems for AI clients.