annotate libervia/backend/plugins/plugin_app_manager_docker/libervia_app_peertube.yaml @ 4281:9e63e02318ec

core: show warning instead of exception in case of missing dependency when loading plugins
author Goffi <goffi@goffi.org>
date Fri, 12 Jul 2024 18:53:00 +0200
parents 2b2a5348bd61
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4250
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
1 type: docker-compose
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
2 files:
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
3 docker-compose.yml:
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
4 content: |
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
5
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
6 services:
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
7 peertube:
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
8 image: chocobozzz/peertube:production-bookworm
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
9 networks:
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
10 default:
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
11 ipv4_address: 172.11.0.42
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
12 ports:
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
13 - "1935:1935"
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
14 - "9000:9000"
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
15 volumes:
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
16 - assets:/app/client/dist
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
17 - ./docker-volume/data:/data
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
18 - ./docker-volume/config:/config
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
19 depends_on:
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
20 - postgres
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
21 - redis
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
22 restart: "always"
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
23
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
24 postgres:
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
25 image: postgres:13-alpine
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
26 volumes:
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
27 - ./docker-volume/db:/var/lib/postgresql/data
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
28 restart: "always"
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
29
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
30 redis:
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
31 image: redis:6-alpine
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
32 volumes:
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
33 - ./docker-volume/redis:/data
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
34 restart: "always"
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
35
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
36 networks:
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
37 default:
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
38 ipam:
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
39 driver: default
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
40 config:
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
41 - subnet: 172.11.0.0/16
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
42
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
43 volumes:
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
44 assets:
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
45
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
46 override:
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
47 services:
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
48 peertube:
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
49 environment:
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
50 PEERTUBE_DB_USERNAME: &db_username "peertube"
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
51 PEERTUBE_DB_PASSWORD: &db_password !libervia_generate_pwd {name: db}
4252
02a7860486b5 app (peertube): environment variable must be strings
Goffi <goffi@goffi.org>
parents: 4250
diff changeset
52 PEERTUBE_DB_SSL: "false"
4250
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
53 PEERTUBE_DB_HOSTNAME: "postgres"
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
54 PEERTUBE_WEBSERVER_HOSTNAME: !libervia_conf ["application peertube", "hostname"]
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
55 PEERTUBE_TRUST_PROXY: '["127.0.0.1", "loopback", "172.18.0.0/16"]'
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
56 PEERTUBE_SECRET: !libervia_generate_pwd {name: secret}
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
57 PEERTUBE_SMTP_HOSTNAME: !libervia_conf ["", "email_server"]
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
58 PEERTUBE_SMTP_USERNAME: !libervia_conf ["", "email_username"]
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
59 PEERTUBE_SMTP_PASSWORD: !libervia_conf ["", "email_password"]
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
60 PEERTUBE_SMTP_DISABLE_STARTTLS: !libervia_conf ["", "email_starttls", "false", "not"]
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
61 PEERTUBE_SMTP_PORT: !libervia_conf ["", "email_port"]
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
62 PEERTUBE_SMTP_FROM: !libervia_conf ["application peertube", "email_from", "peertube@example.com"]
4254
2b2a5348bd61 app (peertube): environment variable must be strings (bis)
Goffi <goffi@goffi.org>
parents: 4252
diff changeset
63 PEERTUBE_SMTP_TLS: "false"
4250
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
64 PEERTUBE_ADMIN_EMAIL: !libervia_conf ["", "email_admins_list", "", "first"]
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
65 PEERTUBE_OBJECT_STORAGE_UPLOAD_ACL_PUBLIC: "public-read"
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
66 PEERTUBE_OBJECT_STORAGE_UPLOAD_ACL_PRIVATE: "private"
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
67
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
68 ports:
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
69 # FIXME: For now we use a static ports, but dynamic ones should be used.
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
70 - "1935:1935"
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
71 - "9000:9000"
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
72 volumes:
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
73 - ./docker-volume/data:/data
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
74 - ./docker-volume/config:/config
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
75 postgres:
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
76 environment:
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
77 POSTGRES_USER: *db_username
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
78 POSTGRES_PASSWORD: *db_password
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
79 POSTGRES_DB: "peertube"
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
80
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
81 expose:
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
82 web_external: true
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
83 front_url: [override, services, peertube, environment, PEERTUBE_WEBSERVER_HOSTNAME]
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
84 web_label: Videos
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
85 ports:
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
86 web:
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
87 service: peertube
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
88 private: 9000
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
89 passwords:
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
90 postgres: [override, services, peertube, environment, PEERTUBE_DB_PASSWORD]
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
91 secret: [override, services, peertube, environment, PEERTUBE_SECRET]
4b6b812f485a plugin app manager: Add an app configuration file for PeerTube.
Goffi <goffi@goffi.org>
parents:
diff changeset
92