Renamed some web apps to web servicesy

This commit is contained in:
2025-08-20 05:00:24 +02:00
parent 4ce681e643
commit 790762d397
28 changed files with 9 additions and 9 deletions

View File

@@ -0,0 +1,19 @@
# Docker Role Template
This folder contains a template to setup docker roles.
## Description
* Put a description here.
## Overview
Put an overview here.
## Features
Put a feature list here
## Further Resources
* Put more resources here

View File

@@ -0,0 +1,31 @@
credentials: {}
docker:
images: {} # @todo Move under services
versions: {} # @todo Move under services
services:
redis:
enabled: false # Enable Redis
database:
enabled: false # Enable the database
features:
matomo: true # Enable Matomo Tracking
css: true # Enable Global CSS Styling
desktop: true # Enable loading of app in iframe
ldap: false # Enable LDAP Network
central_database: false # Enable Central Database Network
recaptcha: false # Enable ReCaptcha
oauth2: false # Enable the OAuth2-Proy
javascript: false # Enables the custom JS in the javascript.js.j2 file
logout: false # With this app I assume that it's a service, so should be renamed and logging is unneccessary
server:
csp:
whitelist: {} # URL's which should be whitelisted
flags: {} # Flags which should be set
domains:
canonical:
- "libretranslate.{{ PRIMARY_DOMAIN }}"
aliases: [] # Alias redirections to the first element of the canonical domains
rbac:
roles: {}

View File

@@ -0,0 +1,19 @@
---
galaxy_info:
author: "Kevin Veen-Birkenbach"
description: "Deploys LibreTranslate via Docker Compose with configurable Redis and database backends, and optional Matomo tracking."
license: "Infinito.Nexus NonCommercial License"
license_url: "https://s.infinito.nexus/license"
company: |
Kevin Veen-Birkenbach
Consulting & Coaching Solutions
https://www.veen.world
galaxy_tags: []
repository: "https://s.infinito.nexus/code"
issue_tracker_url: "https://s.infinito.nexus/issues"
documentation: "https://s.infinito.nexus/code/"
logo:
class: ""
run_after: []
dependencies: []

View File

@@ -0,0 +1,9 @@
- name: "load docker, db and proxy for {{ application_id }}"
include_role:
name: cmp-db-docker-proxy
when: run_once_web_app_libretranslate is not defined
- name: run the libretranslate tasks once
set_fact:
run_once_web_app_libretranslate: true
when: run_once_web_app_libretranslate is not defined

View File

@@ -0,0 +1,19 @@
services:
{% include 'roles/docker-compose/templates/base.yml.j2' %}
application:
image: "{{ applications | get_app_conf(application_id, 'images.' ~ application_id, True) }}"
volumes: []
ports:
- "127.0.0.1:{{ ports.localhost.http[application_id] }}:{{ container_port }}"
{% include 'roles/docker-container/templates/healthcheck/curl.yml.j2' %}
{% include 'roles/docker-container/templates/base.yml.j2' %}
{% include 'roles/docker-container/templates/depends_on/dmbs_excl.yml.j2' %}
{% include 'roles/docker-container/templates/networks.yml.j2' %}
{% include 'roles/docker-compose/templates/volumes.yml.j2' %}
{% include 'roles/docker-compose/templates/networks.yml.j2' %}

View File

@@ -0,0 +1 @@
alert('Custom JS loaded');

View File

@@ -0,0 +1,2 @@
application_id: web-svc-libretranslate # ID of the application
database_type: 0 # Database type [postgres, mariadb]