mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-30 15:28:12 +02:00
Restructure and cleaned up in preparation of new backup logic
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
version: "bookworm"
|
||||
features:
|
||||
matomo: true
|
||||
css: false
|
||||
port-ui-desktop: true
|
||||
port-ui-desktop: true
|
||||
central_database: true
|
||||
oidc: true
|
||||
csp:
|
||||
@@ -30,4 +29,11 @@ docker:
|
||||
redis:
|
||||
enabled: true
|
||||
database:
|
||||
enabled: true
|
||||
enabled: true
|
||||
peertube:
|
||||
name: "peertube"
|
||||
version: "production-bookworm"
|
||||
image: "chocobozzz/peertube"
|
||||
no_stop_required: true
|
||||
volumes:
|
||||
data: peertube_data
|
@@ -1,5 +1,5 @@
|
||||
- name: "Uninstall auth-openid-connect plugin for Peertube"
|
||||
command: >
|
||||
docker exec {{ container_name }} \
|
||||
docker exec {{ peertube_name }} \
|
||||
npm run plugin:uninstall -- --npm-name {{oidc_plugin}}
|
||||
ignore_errors: true
|
||||
|
@@ -4,14 +4,14 @@
|
||||
|
||||
- name: Check if OIDC plugin is already installed
|
||||
command: >
|
||||
docker exec {{ container_name }} test -d /data/plugins/data/peertube-plugin-auth-openid-connect
|
||||
docker exec {{ peertube_name }} test -d /data/plugins/data/peertube-plugin-auth-openid-connect
|
||||
register: peertube_oidc_plugin_check
|
||||
failed_when: false
|
||||
changed_when: false
|
||||
|
||||
- name: "Install auth-openid-connect plugin for Peertube"
|
||||
command: >
|
||||
docker exec {{ container_name }} \
|
||||
docker exec {{ peertube_name }} \
|
||||
npm run plugin:install -- --npm-name {{oidc_plugin}}
|
||||
when: peertube_oidc_plugin_check.rc != 0
|
||||
notify: docker compose up
|
||||
|
@@ -2,8 +2,8 @@
|
||||
|
||||
application:
|
||||
{% set container_port = 9000 %}
|
||||
image: chocobozzz/peertube:production-{{ applications | get_app_conf(application_id, 'version', True) }}
|
||||
container_name: {{ container_name }}
|
||||
image: {{ peertube_image }}:{{ peertube_version }}
|
||||
container_name: {{ peertube_name }}
|
||||
{% include 'roles/docker-container/templates/base.yml.j2' %}
|
||||
ports:
|
||||
- "1935:1935" # @todo Add to ports
|
||||
@@ -18,6 +18,7 @@
|
||||
{% include 'roles/docker-compose/templates/volumes.yml.j2' %}
|
||||
assets:
|
||||
data:
|
||||
name: {{ peertube_volume }}
|
||||
redis:
|
||||
config:
|
||||
|
||||
|
@@ -1,4 +1,7 @@
|
||||
application_id: "peertube"
|
||||
database_type: "postgres"
|
||||
container_name: "{{ application_id }}"
|
||||
oidc_plugin: "peertube-plugin-auth-openid-connect"
|
||||
application_id: "web-app-peertube"
|
||||
database_type: "postgres"
|
||||
oidc_plugin: "peertube-plugin-auth-openid-connect"
|
||||
peertube_version: "{{ applications | get_app_conf(application_id, 'docker.services.peertube.version', True) }}"
|
||||
peertube_image: "{{ applications | get_app_conf(application_id, 'docker.services.peertube.image', True) }}"
|
||||
peertube_name: "{{ applications | get_app_conf(application_id, 'docker.services.peertube.name', True) }}"
|
||||
peertube_volume: "{{ applications | get_app_conf(application_id, 'docker.services.volumes.data', True) }}"
|
Reference in New Issue
Block a user