generated from coop-cloud/example
Compare commits
33
Commits
6.1.1+v6.3.3
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
208c8e4a7c | ||
|
|
c1fee4d284 | ||
|
|
072fa33eb2 | ||
|
|
315edede20 | ||
|
|
0902f8bab1 | ||
|
|
31571dbb79 | ||
|
|
cc7b20f8ac | ||
|
|
b694ca6df3 | ||
|
|
144d6a6e3d | ||
|
|
41ad17d163 | ||
|
|
9201ac8051 | ||
|
|
8f3cf17a90 | ||
|
|
1506db7e0b | ||
|
|
980e247bb5 | ||
|
|
cbf1671295 | ||
|
|
c640c6ef17 | ||
|
|
6eedb2101a | ||
|
|
c3f9d53fc7 | ||
|
|
dc8cdf8238 | ||
|
|
8eb0e51a98 | ||
|
|
46798abbc2 | ||
|
|
0d1ab925eb
|
||
|
|
8b6cacc149 | ||
|
|
a13cf748ce | ||
|
|
08f5f4424c | ||
|
|
528306134a | ||
|
|
1b7a6bdf3d | ||
|
|
67fab632a8 | ||
|
|
ba4fcf2e11 | ||
|
|
2b763f0719 | ||
|
|
9e716979d5 | ||
|
|
8eda97112f | ||
|
|
44d1d7a906 |
+3
-3
@@ -15,7 +15,7 @@ SECRET_DB_PASSWORD_VERSION=v1
|
||||
|
||||
# Comment out these lines if you want to store the peertube secret in a config file instead of a docker secret
|
||||
COMPOSE_FILE="$COMPOSE_FILE:compose.peertube-secret.yml"
|
||||
SECRET_PEERTUBE_SECRET_VERSION=v1
|
||||
SECRET_PEERTUBE_SECRET_VERSION=v1 # length=32
|
||||
|
||||
## Webseed backend
|
||||
#
|
||||
@@ -35,7 +35,7 @@ SECRET_PEERTUBE_SECRET_VERSION=v1
|
||||
#NGINX_WEBSEED_CDN_URI=https://some-bucket.some-cdn.net
|
||||
|
||||
## E-mail settings # <= EDIT ALL THIS
|
||||
#COMPOSE_FILE="compose.yml:compose.smtp.yml"
|
||||
#COMPOSE_FILE="$COMPOSE_FILE:compose.smtp.yml"
|
||||
#PEERTUBE_SMTP_ENABLED=1
|
||||
#SECRET_SMTP_PASSWORD_VERSION=v1
|
||||
#PEERTUBE_SMTP_USERNAME=foobar
|
||||
@@ -46,7 +46,7 @@ SECRET_PEERTUBE_SECRET_VERSION=v1
|
||||
#PEERTUBE_SMTP_DISABLE_STARTTLS=true
|
||||
|
||||
## Live stream settings
|
||||
#COMPOSE_FILE="compose.yml:compose.rtmp.yml"
|
||||
#COMPOSE_FILE="$COMPOSE_FILE:compose.rtmp.yml"
|
||||
|
||||
## Live chat settings
|
||||
#PEERTUBE_LIVE_CHAT_ENABLED=1
|
||||
|
||||
@@ -21,12 +21,10 @@ An ActivityPub-federated video streaming platform using P2P directly in your web
|
||||
1. Set up Docker Swarm and [`abra`]
|
||||
2. Deploy [`coop-cloud/traefik`]
|
||||
3. `abra app new peertube`
|
||||
4. `abra app cmd -l YOURAPPDOMAIN generate_secret`
|
||||
5. `abra app secret generate YOURAPPDOMAIN -a`
|
||||
6. `abra app config YOURAPPDOMAIN` - be sure to change `DOMAIN` to something that resolves to
|
||||
your Docker swarm box
|
||||
7. `abra app deploy YOURAPPDOMAIN`
|
||||
8. Open the configured domain in your browser to finish set-up
|
||||
4. `abra app secret generate YOURAPPDOMAIN -a`
|
||||
5. `abra app config YOURAPPDOMAIN` - be sure to change `DOMAIN` to something that resolves to your Docker swarm box
|
||||
6. `abra app deploy YOURAPPDOMAIN`
|
||||
7. Open the configured domain in your browser to finish set-up
|
||||
|
||||
## Host-mode networking
|
||||
|
||||
|
||||
@@ -1,12 +1,8 @@
|
||||
# shellcheck disable=SC2034,SC2145
|
||||
|
||||
export NGINX_CONFIG_VERSION=v7
|
||||
export NGINX_CONFIG_VERSION=v9
|
||||
export APP_ENTRYPOINT_VERSION=v7
|
||||
|
||||
generate_secret() {
|
||||
abra app secret insert "$APP_NAME" peertube_secret v1 "$(openssl rand -hex 32)" --chaos
|
||||
}
|
||||
|
||||
sub_npm() {
|
||||
abra__service_="app"
|
||||
|
||||
|
||||
+6
-6
@@ -3,7 +3,7 @@ version: "3.8"
|
||||
|
||||
services:
|
||||
web:
|
||||
image: nginx:1.27.4
|
||||
image: nginx:1.30.5
|
||||
networks:
|
||||
- proxy
|
||||
- internal
|
||||
@@ -40,7 +40,7 @@ services:
|
||||
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||
|
||||
app:
|
||||
image: chocobozzz/peertube:v6.3.3-bookworm
|
||||
image: chocobozzz/peertube:v8.3.1-trixie
|
||||
environment:
|
||||
- PEERTUBE_ADMIN_EMAIL
|
||||
- PEERTUBE_CONTACT_FORM_ENABLED
|
||||
@@ -79,10 +79,10 @@ services:
|
||||
- internal
|
||||
deploy:
|
||||
labels:
|
||||
- "coop-cloud.${STACK_NAME}.version=6.1.1+v6.3.3-bookworm"
|
||||
- "coop-cloud.${STACK_NAME}.version=8.4.1+v8.3.1-trixie"
|
||||
|
||||
db:
|
||||
image: pgautoupgrade/pgautoupgrade:17-alpine
|
||||
image: pgautoupgrade/pgautoupgrade:18-alpine
|
||||
environment:
|
||||
- POSTGRES_USER=peertube
|
||||
- POSTGRES_DB=peertube
|
||||
@@ -90,7 +90,7 @@ services:
|
||||
secrets:
|
||||
- db_password
|
||||
volumes:
|
||||
- postgres-data:/var/lib/postgresql/data
|
||||
- postgres-data:/var/lib/postgresql/
|
||||
networks:
|
||||
- internal
|
||||
healthcheck:
|
||||
@@ -100,7 +100,7 @@ services:
|
||||
retries: 10
|
||||
|
||||
cache:
|
||||
image: redis:7-alpine
|
||||
image: redis:8-alpine
|
||||
volumes:
|
||||
- redis-data:/data
|
||||
networks:
|
||||
|
||||
+5
-2
@@ -130,7 +130,8 @@ http {
|
||||
font/truetype
|
||||
font/opentype
|
||||
application/vnd.ms-fontobject
|
||||
image/svg+xml;
|
||||
image/svg+xml
|
||||
application/xml;
|
||||
gzip_min_length 1000; # default is 20 bytes
|
||||
gzip_buffers 16 8k;
|
||||
gzip_comp_level 2; # default is 1
|
||||
@@ -178,7 +179,9 @@ http {
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
|
||||
|
||||
# Prevent too much proxying, which results in high disk write IO
|
||||
proxy_max_temp_file_size 50M;
|
||||
proxy_limit_rate 5M;
|
||||
|
||||
proxy_pass http://backend;
|
||||
|
||||
@@ -1 +1,25 @@
|
||||
|
||||
Before upgrading:
|
||||
|
||||
You might need to migrate some data, depending on your setup:
|
||||
> Important for Docker admins If you enabled the "Keep a version of the input file" configuration, files may have been stored in the container instead of the host volume. To prevent data loss, you must copy the files on the host before upgrading using docker compose cp peertube:/app/storage/original-video-files docker-volume/data
|
||||
|
||||
If you are upgrading from earlier versions, double check the configs `default.yml` and `production.yaml` as new config keys have been added but we are (currently) not tracking that file here (see issue: https://git.coopcloud.tech/coop-cloud/peertube/issues/17).
|
||||
|
||||
You can find the production.yaml.example here:
|
||||
https://github.com/Chocobozzz/PeerTube/blob/v6.3.3/config/production.yaml.example
|
||||
|
||||
After upgrading:
|
||||
You need to manually execute a migration script after your upgrade while PeerTube is running and the database migration is complete (`Migrations finished. New migration version schema: 865` in PeerTube startup logs, this migration script may take a while).
|
||||
|
||||
To search the logs:
|
||||
`abra app logs <app>`
|
||||
|
||||
To execute the migration:
|
||||
|
||||
```abra app run <app> app bash
|
||||
export ARGS="-e NODE_CONFIG_DIR=/config -e NODE_ENV=production"
|
||||
export PEERTUBE_DB_PASSWORD=$(cat /run/secrets/db_password)
|
||||
node dist/scripts/migrations/peertube-6.3.js```
|
||||
|
||||
You can find the full release notes here:
|
||||
https://github.com/Chocobozzz/PeerTube/blob/develop/CHANGELOG.md#important-notes-5
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
> Due to a bug in the remote video thumbnail update, we recommend running the prune storage script to clean up the filesystem
|
||||
|
||||
```abra app run <app> app bash
|
||||
export ARGS="-e NODE_CONFIG_DIR=/config -e NODE_ENV=production"
|
||||
export PEERTUBE_DB_PASSWORD=$(cat /run/secrets/db_password)
|
||||
npm run prune-storage```
|
||||
|
||||
> If you are using object storage, you will need to create the captions bucket or configure PeerTube to use an existing one in the configuration file or using environment variables if you use Docker (PEERTUBE_OBJECT_STORAGE_CAPTIONS_BUCKET_NAME, PEERTUBE_OBJECT_STORAGE_CAPTIONS_PREFIX, PEERTUBE_OBJECT_STORAGE_CAPTIONS_BASE_URL)
|
||||
|
||||
See release notes: https://github.com/Chocobozzz/PeerTube/blob/develop/CHANGELOG.md#v710
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
Please update your .env file, specially if you're using SMTP or RTMP.
|
||||
@@ -0,0 +1,23 @@
|
||||
Bumping peertube to v8.0.2
|
||||
|
||||
* Ensure storage.uploads directory is set in your `production.yaml` (in `/var/lib/docker/volumes/<app>_app-config/_data`)
|
||||
* Copy over the [`default.yaml`](https://raw.githubusercontent.com/Chocobozzz/PeerTube/refs/tags/v8.0.2/config/default.yaml) in to `/var/lib/docker/volumes/<app>_app-config/_data/`
|
||||
* Database migrations of this version can take a long time (up to 30 minutes on an instance with many users/federation actors and a slow database disk)
|
||||
* You need to manually execute a migration script after your upgrade while PeerTube is running and the database migration is complete(`Migrations finished. New migration version schema: 970 in PeerTube startup logs`):
|
||||
|
||||
To search the logs:
|
||||
`abra app logs <app>`
|
||||
|
||||
To run the migration:
|
||||
|
||||
```
|
||||
abra app run <app> app bash --user peertube
|
||||
export ARGS="-e NODE_CONFIG_DIR=/config -e NODE_ENV=production"
|
||||
export PEERTUBE_DB_PASSWORD=$(cat /run/secrets/db_password)
|
||||
node dist/scripts/migrations/peertube-8.0.js```
|
||||
|
||||
Full release notes:
|
||||
https://github.com/Chocobozzz/PeerTube/releases/tag/v8.0.0
|
||||
https://github.com/Chocobozzz/PeerTube/releases/tag/v8.0.1
|
||||
https://github.com/Chocobozzz/PeerTube/releases/tag/v8.0.2
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
Bumping peertube to v8.1.8
|
||||
|
||||
* You need to manually execute a migration script after your upgrade while PeerTube is running and the database migration is complete(`Migrations finished. New migration version schema: 1000 in PeerTube startup logs`):
|
||||
|
||||
To search the logs:
|
||||
`abra app logs <app>`
|
||||
|
||||
To run the migration, regenerate thumbnails, prune storage:
|
||||
|
||||
```
|
||||
abra app run <app> app bash --user peertube
|
||||
|
||||
export ARGS="-e NODE_CONFIG_DIR=/config -e NODE_ENV=production"
|
||||
export PEERTUBE_DB_PASSWORD=$(cat /run/secrets/db_password)
|
||||
|
||||
node dist/scripts/migrations/peertube-8.1.js
|
||||
|
||||
npm run regenerate-thumbnails
|
||||
|
||||
npm run prune-storage
|
||||
```
|
||||
|
||||
|
||||
|
||||
Full release notes:
|
||||
https://github.com/Chocobozzz/PeerTube/releases/tag/v8.1.0
|
||||
|
||||
https://github.com/Chocobozzz/PeerTube/releases/tag/v8.1.8
|
||||
@@ -0,0 +1,8 @@
|
||||
Bumping peertube to v8.2.1
|
||||
|
||||
* Copy over the [`default.yaml`](https://raw.githubusercontent.com/Chocobozzz/PeerTube/refs/tags/v8.2.1/config/default.yaml) in to `/var/lib/docker/volumes/<app>_app-config/_data/`
|
||||
|
||||
Full release notes:
|
||||
https://github.com/Chocobozzz/PeerTube/releases/tag/v8.2.0
|
||||
|
||||
Massive thanks to 3wc for the help!!
|
||||
@@ -0,0 +1,19 @@
|
||||
Bumping peertube to v8.3.0
|
||||
|
||||
* If your instance has many videos (local or federated) in the database, automatic migrations at next startup can take several minutes to finish. Plan for a short period of downtime during this upgrade
|
||||
|
||||
* You need to manually execute a migration script *after upgrading*, while PeerTube is running and the database migration is complete (Migrations finished. New migration version schema: 1125 in PeerTube startup logs)
|
||||
|
||||
To search the logs:
|
||||
`abra app logs <app>`
|
||||
|
||||
To run the migration:
|
||||
|
||||
```
|
||||
abra app run <app> app bash --user peertube
|
||||
export ARGS="-e NODE_CONFIG_DIR=/config -e NODE_ENV=production"
|
||||
export PEERTUBE_DB_PASSWORD=$(cat /run/secrets/db_password)
|
||||
node dist/scripts/migrations/peertube-8.3.js```
|
||||
|
||||
Full release notes:
|
||||
https://github.com/Chocobozzz/PeerTube/releases/tag/v8.3.0
|
||||
Reference in New Issue
Block a user