]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - support/docker/production/docker-compose.yml
Add account link in videos list
[github/Chocobozzz/PeerTube.git] / support / docker / production / docker-compose.yml
CommitLineData
e8395f02 1version: "3.3"
2
3services:
e8395f02 4
ef48a0d5
BB
5 peertube:
6 build:
95540ed2
C
7 context: .
8 dockerfile: ./Dockerfile.stretch
779f0000 9 image: chocobozzz/peertube:production-stretch
e8395f02 10 environment:
11 PEERTUBE_HOSTNAME: my.domain.tld
12 PEERTUBE_PORT: 443
ef48a0d5 13 PEERTUBE_HTTPS: "true"
e8395f02 14 PEERTUBE_ADMIN_EMAIL: admin@domain.tld
ef48a0d5
BB
15 PEERTUBE_DB_HOSTNAME: postgres
16 PEERTUBE_DB_USERNAME: postgres_user
17 PEERTUBE_DB_PASSWORD: postgres_password
18 PEERTUBE_SIGNUP_ENABLED: "true"
19 PEERTUBE_TRANSCODING_ENABLED: "true"
20 PEERTUBE_REDIS_HOSTNAME: redis
95540ed2 21 PEERTUBE_SMTP_HOSTNAME: null
ef48a0d5
BB
22 PEERTUBE_SMTP_PORT: 25
23 PEERTUBE_SMTP_FROM: noreply@peertube.domain.tld
24 PEERTUBE_SMTP_TLS: "true"
e8395f02 25 # Traefik labels are suggested as an example for people using Traefik,
26 # remove them if you are using another reverse proxy.
27 labels:
28 traefik.enable: "true"
29 traefik.frontend.rule: "Host:${PEERTUBE_HOSTNAME}"
30 traefik.port: "9000"
4aeb67a5
C
31 # If you don't want to use a reverse proxy (not suitable for production!)
32 # ports:
33 # - "80:9000"
e8395f02 34 volumes:
95981f6b 35 - ./data:/data
e8395f02 36 depends_on:
ef48a0d5
BB
37 - postgres
38 - redis
39 restart: "always"
e8395f02 40
ef48a0d5 41 postgres:
0c49373a 42 image: postgres:10-alpine
e8395f02 43 environment:
ef48a0d5
BB
44 POSTGRES_USER: postgres_user
45 POSTGRES_PASSWORD: postgres_password
46 POSTGRES_DB: peertube
e8395f02 47 volumes:
48 - ./db:/var/lib/postgresql/data
ef48a0d5
BB
49 restart: "always"
50
51 redis:
0c49373a 52 image: redis:4-alpine
ef48a0d5
BB
53 volumes:
54 - ./redis:/data
55 restart: "always"