aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/docker/production/docker-compose.yml
blob: db1c7d587304cf0820c34a552d9268b63cacbdf4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
version: "3.3"

services:
  peertube:

    build: .
    image: peertube:stretch
    environment:
      PEERTUBE_HOSTNAME: my.domain.tld
      PEERTUBE_PORT: 443
      PEERTUBE_HTTPS: true
      PEERTUBE_ADMIN_EMAIL: admin@domain.tld
      PEERTUBE_DB_USERNAME: user
      PEERTUBE_DB_PASSWORD: password
      PEERTUBE_SIGNUP_ENABLED: true
      PEERTUBE_TRANSCODING_ENABLED: true
    # Traefik labels are suggested as an example for people using Traefik,
    # remove them if you are using another reverse proxy.
    labels:
      traefik.enable: "true"
      traefik.frontend.rule: "Host:${PEERTUBE_HOSTNAME}"
      traefik.port: "9000"
    volumes:
      - ./data:/usr/src/app/data
    depends_on:
      - db

  db:
    image: postgres:10
    environment:
      POSTGRES_USERNAME: user
      POSTGRES_PASSWORD: password
      POSTGRES_DB: peertube_prod
    volumes:
      - ./db:/var/lib/postgresql/data