Aller au contenu

Peertube

A quoi ça sert?

Serveur de vidéo, un tiptube en pire!

🔗 peertube.mathgon.org

📖 Documentation

https://peertube.mathgon.org/

Installation

Générer des clés

sudo mkdir -p /mnt/Storage1/media/peertube/{data,config}
sudo chown -R 999:999 /mnt/Storage1/media/peertube
openssl rand -hex 16   # pour le mot de passe PostgreSQLopenssl rand -hex 32   # pour PEERTUBE_SECRET
e88856ebc50d59076cae93ffee77a1b
openssl rand -hex 16   # pour le mot de passe PostgreSQL
750b6d74159dce816b206b98c342c11
name: peertube
services:
  peertube:
    cpu_shares: 90
    command: []
    container_name: peertube
    depends_on:
      postgres:
        condition: service_started
        required: true
      redis:
        condition: service_started
        required: true
    deploy:
      resources:
        limits:
          memory: 15878M
    environment:
      - PEERTUBE_ADMIN_EMAIL=youpi@youpi.com
      - PEERTUBE_DB_HOSTNAME=postgres
      - PEERTUBE_DB_PASSWORD=a9893afa8ca4e050098630feb95dbcc
      - PEERTUBE_DB_USERNAME=peertube
      - PEERTUBE_REDIS_HOSTNAME=redis
      - PEERTUBE_SECRET=7929e966dd47dd442021e7128fe966d8a500b67fcfdfdabeae5e4421f7437c9
      - PEERTUBE_SMTP_DISABLED=true
      - PEERTUBE_WEBSERVER_HOSTNAME=peertube.mathgon.org
      - PEERTUBE_WEBSERVER_HTTPS=true
      - PEERTUBE_WEBSERVER_PORT=443
    hostname: peertube
    image: chocobozzz/peertube:production-bookworm
    labels:
      icon: https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/peertube.png
    ports:
      - target: 9000
        published: "9008"
        protocol: tcp
    restart: unless-stopped
    volumes:
      - type: bind
        source: /mnt/Storage1/media/peertube/data
        target: /data
      - type: bind
        source: /mnt/Storage1/media/peertube/config
        target: /config
    devices: []
    cap_add: []
    networks:
      - default
    privileged: false
  postgres:
    cpu_shares: 90
    command: []
    container_name: peertube-postgres
    deploy:
      resources:
        limits:
          memory: 15878M
    environment:
      - POSTGRES_DB=peertube
      - POSTGRES_USER=peertube
    hostname: peertube-postgres
    image: postgres:13-alpine
    labels:
      icon: https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/peertube.png
    restart: unless-stopped
    volumes:
      - type: bind
        source: /DATA/AppData/peertube/db
        target: /var/lib/postgresql/data
    ports: []
    devices: []
    cap_add: []
    networks:
      - default
    privileged: false
  redis:
    cpu_shares: 90
    command: []
    container_name: peertube-redis
    deploy:
      resources:
        limits:
          memory: 15878M
    hostname: peertube-redis
    image: redis:7-alpine
    labels:
      icon: https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/peertube.png
    restart: unless-stopped
    volumes:
      - type: bind
        source: /DATA/AppData/peertube/redis
        target: /data
    ports: []
    devices: []
    cap_add: []
    environment: []
    networks:
      - default
    privileged: false
networks:
  default:
    name: peertube_default

Mise à jour

  • 2026/09/12 Installation -> [production-bookworm 7.3.1]
  • 2026/10/18 -> production 8.3.1
  • 2026/11/01 -> production 8.3.2