-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat(service): add PeerTube #9564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
maebahesioru
wants to merge
10
commits into
coollabsio:next
Choose a base branch
from
maebahesioru:feat/add-peertube-service-template
base: next
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+75
−0
Open
Changes from 4 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
45f4295
feat: add PeerTube service template
maebahesioru 73d11b7
fix: use SERVICE_HEX_32 for PEERTUBE_SECRET (openssl rand -hex 32 for…
maebahesioru 2af69bb
fix: add PEERTUBE_DB_NAME to match POSTGRES_DB
maebahesioru 83e4d68
fix: expose port 9000, make WEBSERVER_PORT and HTTPS configurable
maebahesioru bdc5032
fix(service): remove unwanted comments on peertube
ShadowArcanist bbe54f4
fix(service): set correct hostname for SMTP on peertube
ShadowArcanist 10b3f7c
fix(service): set correct hostname for webserver on peertube
ShadowArcanist a5e9b08
fix(service): set correct hostname for postfix on peertube
ShadowArcanist 0fd7d84
fix(service): remove unused port declaration on peertube
ShadowArcanist 0b73205
fix(service): pin docker image to static version on peertube
ShadowArcanist File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,77 @@ | ||
| # documentation: https://docs.joinpeertube.org/install/docker | ||
| # slogan: Free, open-source and decentralized video platform. | ||
| # category: media | ||
| # tags: video,fediverse,activitypub,youtube,streaming,self-hosted | ||
| # logo: svgs/peertube.svg | ||
| # port: 9000 | ||
|
|
||
| # IMPORTANT: Set PEERTUBE_WEBSERVER_HOSTNAME to your domain before deploying. | ||
|
|
||
| services: | ||
| peertube: | ||
| image: chocobozzz/peertube:production | ||
|
ShadowArcanist marked this conversation as resolved.
Outdated
|
||
| environment: | ||
| - SERVICE_URL_PEERTUBE_9000 | ||
| - PEERTUBE_WEBSERVER_HOSTNAME=${PEERTUBE_WEBSERVER_HOSTNAME:?} | ||
|
ShadowArcanist marked this conversation as resolved.
Outdated
|
||
| - PEERTUBE_WEBSERVER_PORT=${PEERTUBE_WEBSERVER_PORT:-443} | ||
| - PEERTUBE_WEBSERVER_HTTPS=${PEERTUBE_WEBSERVER_HTTPS:-true} | ||
| - PEERTUBE_TRUST_PROXY=["127.0.0.1", "loopback", "172.18.0.0/16"] | ||
| - PEERTUBE_SECRET=${SERVICE_HEX_32_PEERTUBESECRET} | ||
| - PEERTUBE_DB_USERNAME=${SERVICE_USER_POSTGRESQL} | ||
| - PEERTUBE_DB_PASSWORD=${SERVICE_PASSWORD_POSTGRESQL} | ||
| - PEERTUBE_DB_HOSTNAME=postgres | ||
| - PEERTUBE_DB_NAME=${POSTGRES_DB:-peertube} | ||
| - PEERTUBE_DB_SSL=false | ||
| - PEERTUBE_REDIS_HOSTNAME=redis | ||
| - PEERTUBE_SMTP_HOSTNAME=postfix | ||
| - PEERTUBE_SMTP_PORT=25 | ||
| - PEERTUBE_SMTP_FROM=noreply@${PEERTUBE_WEBSERVER_HOSTNAME:-example.com} | ||
|
ShadowArcanist marked this conversation as resolved.
Outdated
|
||
| - PEERTUBE_SMTP_TLS=false | ||
| - PEERTUBE_SMTP_DISABLE_STARTTLS=false | ||
| - PEERTUBE_ADMIN_EMAIL=${PEERTUBE_ADMIN_EMAIL:?} | ||
| - POSTGRES_USER=${SERVICE_USER_POSTGRESQL} | ||
| - POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRESQL} | ||
| - POSTGRES_DB=${POSTGRES_DB:-peertube} | ||
| ports: | ||
| - '9000' | ||
|
ShadowArcanist marked this conversation as resolved.
Outdated
|
||
| volumes: | ||
| - peertube-data:/data | ||
| - peertube-config:/config | ||
| depends_on: | ||
| postgres: | ||
| condition: service_healthy | ||
| redis: | ||
| condition: service_healthy | ||
| restart: always | ||
|
|
||
| postgres: | ||
| image: postgres:17-alpine | ||
| environment: | ||
| - POSTGRES_USER=${SERVICE_USER_POSTGRESQL} | ||
| - POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRESQL} | ||
| - POSTGRES_DB=${POSTGRES_DB:-peertube} | ||
| volumes: | ||
| - db-data:/var/lib/postgresql/data | ||
| healthcheck: | ||
| test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB:-peertube}"] | ||
| interval: 5s | ||
| timeout: 5s | ||
| retries: 10 | ||
| restart: always | ||
|
|
||
| redis: | ||
| image: redis:8-alpine | ||
| volumes: | ||
| - redis-data:/data | ||
| healthcheck: | ||
| test: ["CMD", "redis-cli", "ping"] | ||
| interval: 5s | ||
| timeout: 5s | ||
| retries: 10 | ||
| restart: always | ||
|
|
||
| postfix: | ||
| image: mwader/postfix-relay | ||
| environment: | ||
| - POSTFIX_myhostname=${PEERTUBE_WEBSERVER_HOSTNAME:-example.com} | ||
|
ShadowArcanist marked this conversation as resolved.
Outdated
|
||
| restart: always | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.