feat: kolibri app

This commit is contained in:
Jake Turner 2025-11-18 16:34:01 -08:00 committed by Jake Turner
parent c2f33075fd
commit 9670a78fb4
2 changed files with 20 additions and 0 deletions

View File

@ -20,6 +20,7 @@ export class DockerService {
public static OPEN_WEBUI_SERVICE_NAME = 'nomad_open_webui';
public static CYBERCHEF_SERVICE_NAME = 'nomad_cyberchef';
public static FLATNOTES_SERVICE_NAME = 'nomad_flatnotes';
public static KOLIBRI_SERVICE_NAME = 'nomad_kolibri';
public static NOMAD_STORAGE_ABS_PATH = '/opt/project-nomad/storage';
constructor() {

View File

@ -121,6 +121,25 @@ export default class ServiceSeeder extends BaseSeeder {
is_dependency_service: false,
depends_on: null,
},
{
service_name: DockerService.KOLIBRI_SERVICE_NAME,
friendly_name: 'Kolibri',
description: 'An offline-first education platform for schools and learners',
container_image: 'treehouses/kolibri:latest',
container_command: null,
container_config: JSON.stringify({
HostConfig: {
RestartPolicy: { Name: 'unless-stopped' },
PortBindings: { '8080/tcp': [{ HostPort: '8300' }] },
Binds: [`${DockerService.NOMAD_STORAGE_ABS_PATH}/kolibri:/root/.kolibri`]
},
ExposedPorts: { '8080/tcp': {} },
}),
ui_location: '8300',
installed: false,
is_dependency_service: false,
depends_on: null,
},
]
async run() {