Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Peertube
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NoCloud
docker
Peertube
Commits
60f9ddc0
Commit
60f9ddc0
authored
7 months ago
by
Elian Loraux
Browse files
Options
Downloads
Patches
Plain Diff
ça marche en local
Je clean et repush
parent
fc2d7686
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.env.sample
+20
-32
20 additions, 32 deletions
.env.sample
docker-compose.yml
+35
-2
35 additions, 2 deletions
docker-compose.yml
ports.yml
+1
-1
1 addition, 1 deletion
ports.yml
with
56 additions
and
35 deletions
.env.sample
+
20
−
32
View file @
60f9ddc0
COMPOSE_FILE=docker-compose.yml:ports.yml:postfix.yml
# For aquila style deployement
# COMPOSE_FILE=docker-compose.yml:traefik.yml
# For local deployement
COMPOSE_FILE=docker-compose.yml:ports.yml
# Host and Name for traefik
# Host and Name for traefik
HOST=localhost
HOST=localhost
NAME=peertube
NAME=peertube
SUBNET=172.10.0.0/16
SUBNET=172.10.0.0/16
# Must be within SUBNET
# Must be within SUBNET
IP=172.10.0.10
IP=172.10.0.10
# Database / Postgres service configuration
# Database / Postgres service configuration
POSTGRES_USER=<MY POSTGRES USERNAME>
POSTGRES_USER=peertube
POSTGRES_PASSWORD=<MY POSTGRES PASSWORD>
POSTGRES_PASSWORD=peertube
# Postgres database name "peertube"
POSTGRES_DB=peertube
POSTGRES_DB=peertube
# Editable only with a suffix :
# Editable only with a suffix :
#POSTGRES_DB=peertube_prod
#POSTGRES_DB=peertube_prod
#PEERTUBE_DB_SUFFIX=_prod
#PEERTUBE_DB_SUFFIX=_prod
# MUST be the same as POSTGRE USER and PASSWORD
# MUST be the same as POSTGRE USER and PASSWORD
PEERTUBE_DB_USERNAME=
<MY POSTGRES USERNAME>
PEERTUBE_DB_USERNAME=
peertube
PEERTUBE_DB_PASSWORD=
<MY POSTGRES PASSWORD>
PEERTUBE_DB_PASSWORD=
peertube
PEERTUBE_DB_SSL=false
PEERTUBE_DB_SSL=false
# Default to Postgres service name "postgres" in docker-compose.yml
# Default to Postgres service name "postgres" in docker-compose.yml
PEERTUBE_DB_HOSTNAME=postgres
PEERTUBE_DB_HOSTNAME=postgres
# PeerTube server configuration
# PeerTube server configuration
# If you test PeerTube in local: use "peertube.localhost" and add this domain to your host file resolving on 127.0.0.1
# If you test PeerTube in local: use "peertube.localhost" and add this domain to your host file resolving on 127.0.0.1
PEERTUBE_WEBSERVER_HOSTNAME=
<MY DOMAIN>
PEERTUBE_WEBSERVER_HOSTNAME=
localhost
# If you just want to test PeerTube on local
# If you just want to test PeerTube on local
#
PEERTUBE_WEBSERVER_PORT=
900
0
PEERTUBE_WEBSERVER_PORT=
8
0
#
PEERTUBE_WEBSERVER_HTTPS=false
PEERTUBE_WEBSERVER_HTTPS=false
# If you need more than one IP as trust_proxy
# If you need more than one IP as trust_proxy
# pass them as a comma separated array:
# pass them as a comma separated array:
# Must include Subnet
# Must include Subnet
PEERTUBE_TRUST_PROXY=["127.0.0.1", "loopback", "172.18.0.0/16"]
#
PEERTUBE_TRUST_PROXY=["127.0.0.1", "loopback", "172.18.0.0/16"]
# Generate one using `openssl rand -hex 32`
# Generate one using `openssl rand -hex 32`
PEERTUBE_SECRET=
<MY PEERTUBE SECRET>
PEERTUBE_SECRET=
peertubesecret
# E-mail configuration
# E-mail configuration
# If you use a Custom SMTP server
PEERTUBE_SMTP_HOSTNAME=mail.gandi.net
#PEERTUBE_SMTP_USERNAME=
#PEERTUBE_SMTP_PASSWORD=
# Default to Postfix service name "postfix" in docker-compose.yml
# May be the hostname of your Custom SMTP server
PEERTUBE_SMTP_HOSTNAME=postfix
PEERTUBE_SMTP_PORT=25
PEERTUBE_SMTP_PORT=25
PEERTUBE_SMTP_FROM=
noreply@<MY DOMAIN>
PEERTUBE_SMTP_FROM=
peertube@tetras-libre.fr
PEERTUBE_SMTP_TLS=false
PEERTUBE_SMTP_TLS=false
PEERTUBE_SMTP_DISABLE_STARTTLS=false
PEERTUBE_SMTP_DISABLE_STARTTLS=false
PEERTUBE_ADMIN_EMAIL=<MY EMAIL ADDRESS>
PEERTUBE_ADMIN_EMAIL=elian.loraux@tetras-libre.fr
# Postfix service configuration
POSTFIX_myhostname=<MY DOMAIN>
# If you need to generate a list of sub/DOMAIN keys
# pass them as a whitespace separated string <DOMAIN>=<selector>
OPENDKIM_DOMAINS=<MY DOMAIN>=peertube
# see https://github.com/wader/postfix-relay/pull/18
OPENDKIM_RequireSafeKeys=no
# /!\ Prefer to use the PeerTube admin interface to set the following configurations /!\
#PEERTUBE_SIGNUP_ENABLED=true
#PEERTUBE_TRANSCODING_ENABLED=true
#PEERTUBE_CONTACT_FORM_ENABLED=true
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
35
−
2
View file @
60f9ddc0
...
@@ -4,6 +4,26 @@ services:
...
@@ -4,6 +4,26 @@ services:
peertube
:
peertube
:
image
:
chocobozzz/peertube:production-bookworm
image
:
chocobozzz/peertube:production-bookworm
# environment:
# # General configuration
# - PEERTUBE_SECRET=${PEERTUBE_SECRET}
# - PEERTUBE_WEBSERVER_HOSTNAME=${PEERTUBE_WEBSERVER_HOSTNAME}
# - PEERTUBE_TRUST_PROXY=["127.0.0.1", "loopback", "172.18.0.0/16"]
# - PEERTUBE_WEBSERVER_PORT=80
# - PEERTUBE_WEBSERVER_HTTPS=false
# # Data base configuration
# - PEERTUBE_DB_USERNAME=${POSTGRES_USER}
# - PEERTUBE_DB_PASSWORD=${POSTGRES_PASSWORD}
# - PEERTUBE_DB_HOSTNAME=${PEERTUBE_DB_HOSTNAME}
# - PEERTUBE_DB_SSL=false
# # Email configuration
# - PEERTUBE_SMTP_HOSTNAME=${PEERTUBE_SMTP_HOSTNAME}
# - PEERTUBE_SMTP_PORT=${PEERTUBE_SMTP_PORT}
# - PEERTUBE_SMTP_FROM=${PEERTUBE_SMTP_FROM}
# - PEERTUBE_SMTP_TLS=${PEERTUBE_SMTP_TLS}
# - PEERTUBE_SMTP_DISABLE_STARTTLS=${PEERTUBE_SMTP_DISABLE_STARTTLS}
# - PEERTUBE_ADMIN_EMAIL=${PEERTUBE_ADMIN_EMAIL}
env_file
:
env_file
:
-
.env
-
.env
volumes
:
volumes
:
...
@@ -11,17 +31,30 @@ services:
...
@@ -11,17 +31,30 @@ services:
-
./docker-volume/data:/data
-
./docker-volume/data:/data
-
./docker-volume/config:/config
-
./docker-volume/config:/config
depends_on
:
depends_on
:
-
postgres
postgres
:
-
redis
condition
:
service_healthy
redis
:
condition
:
service_started
restart
:
"
always"
restart
:
"
always"
postgres
:
postgres
:
image
:
postgres:13-alpine
image
:
postgres:13-alpine
# environment:
# - POSTGRES_USER=${POSTGRES_USER}
# - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
# - POSTGRES_DB=${POSTGRES_DB}
env_file
:
env_file
:
-
.env
-
.env
volumes
:
volumes
:
-
./docker-volume/db:/var/lib/postgresql/data
-
./docker-volume/db:/var/lib/postgresql/data
restart
:
"
always"
restart
:
"
always"
healthcheck
:
test
:
[
"
CMD-SHELL"
,
"
pg_isready"
,
"
-d"
,
"
${POSTGRES_DB}"
]
interval
:
30s
timeout
:
60s
retries
:
5
start_period
:
80s
redis
:
redis
:
image
:
redis:6-alpine
image
:
redis:6-alpine
...
...
This diff is collapsed.
Click to expand it.
ports.yml
+
1
−
1
View file @
60f9ddc0
...
@@ -3,4 +3,4 @@ version: "3.3"
...
@@ -3,4 +3,4 @@ version: "3.3"
services
:
services
:
peertube
:
peertube
:
ports
:
ports
:
-
"
900
0:9000"
# Uncomment if you use another webserver/proxy or test PeerTube in local, otherwise not suitable for production
-
"
8
0:9000"
# Uncomment if you use another webserver/proxy or test PeerTube in local, otherwise not suitable for production
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment