add peertube

This commit is contained in:
kev 2022-06-14 19:20:53 +08:00
parent c692e9d2ef
commit 2de56efd2c
3 changed files with 69 additions and 0 deletions

View File

@ -400,6 +400,7 @@ A collection of delicious docker recipes.
- [x] outlinewiki/outline
- [x] gabekangas/owncast
- [x] owncloud
- [x] chocobozzz/peertube
- [x] dpage/pgadmin4
- [x] phplist/phplist
- [x] phpmyadmin

8
peertube/README.md Normal file
View File

@ -0,0 +1,8 @@
peertube
========
[PeerTube][1], developed by Framasoft, is the free and decentralized alternative to
video platforms, providing you over 600,000 videos published by 150,000 users
and viewed over 70 million times.
[1]: https://joinpeertube.org/

View File

@ -0,0 +1,60 @@
version: "3.8"
services:
peertube:
image: chocobozzz/peertube:production-bullseye
ports:
- "1935:1935"
- "9000:9000"
volumes:
- ./data/peertube/assets:/app/client/dist
- ./data/peertube/data:/data
- ./data/peertube/config:/config
environment:
PEERTUBE_DB_USERNAME: peertube
PEERTUBE_DB_PASSWORD: peertube
PEERTUBE_DB_SSL: 'false'
PEERTUBE_DB_HOSTNAME: 'postgres'
PEERTUBE_WEBSERVER_HOSTNAME: 'peertube.easypi.duckdns.org'
# PEERTUBE_WEBSERVER_PORT: '80'
# PEERTUBE_WEBSERVER_HTTPS: 'false'
PEERTUBE_TRUST_PROXY: '["127.0.0.1", "loopback", "172.18.0.0/16"]'
PEERTUBE_SMTP_USERNAME: username
PEERTUBE_SMTP_PASSWORD: password
PEERTUBE_SMTP_HOSTNAME: smtp.gmail.com
PEERTUBE_SMTP_PORT: 465
PEERTUBE_SMTP_FROM: noreply@gmail.com
PEERTUBE_SMTP_TLS: 'true'
PEERTUBE_SMTP_DISABLE_STARTTLS: 'false'
PEERTUBE_ADMIN_EMAIL: admin@gmail.com
networks:
default:
ipv4_address: 172.18.0.42
depends_on:
- postgres
- redis
restart: unless-stopped
postgres:
image: postgres:14-alpine
volumes:
- ./data/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_USER=peertube
- POSTGRES_PASSWORD=peertube
- POSTGRES_DB=peertube
restart: unless-stopped
redis:
image: redis:7-alpine
volumes:
- ./data/redis:/data
restart: unless-stopped
networks:
default:
ipam:
driver: default
config:
- subnet: 172.18.0.0/16