mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-30 07:18:09 +02:00
Renamed some web apps to web servicesy
This commit is contained in:
19
roles/web-svc-libretranslate/README.md
Normal file
19
roles/web-svc-libretranslate/README.md
Normal 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
|
31
roles/web-svc-libretranslate/config/main.yml
Normal file
31
roles/web-svc-libretranslate/config/main.yml
Normal 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: {}
|
||||
|
19
roles/web-svc-libretranslate/meta/main.yml
Normal file
19
roles/web-svc-libretranslate/meta/main.yml
Normal 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: []
|
0
roles/web-svc-libretranslate/schema/main.yml
Normal file
0
roles/web-svc-libretranslate/schema/main.yml
Normal file
9
roles/web-svc-libretranslate/tasks/main.yml
Normal file
9
roles/web-svc-libretranslate/tasks/main.yml
Normal 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
|
19
roles/web-svc-libretranslate/templates/docker-compose.yml.j2
Normal file
19
roles/web-svc-libretranslate/templates/docker-compose.yml.j2
Normal 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' %}
|
||||
|
||||
|
0
roles/web-svc-libretranslate/templates/env.j2
Normal file
0
roles/web-svc-libretranslate/templates/env.j2
Normal file
1
roles/web-svc-libretranslate/templates/javascript.js
Normal file
1
roles/web-svc-libretranslate/templates/javascript.js
Normal file
@@ -0,0 +1 @@
|
||||
alert('Custom JS loaded');
|
2
roles/web-svc-libretranslate/vars/main.yml
Normal file
2
roles/web-svc-libretranslate/vars/main.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
application_id: web-svc-libretranslate # ID of the application
|
||||
database_type: 0 # Database type [postgres, mariadb]
|
Reference in New Issue
Block a user