]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - support/docker/production/docker-compose.yml
Add help in conf file regarding SMTP
[github/Chocobozzz/PeerTube.git] / support / docker / production / docker-compose.yml
1 version: "3.3"
2
3 services:
4
5 reverse-proxy:
6 image: traefik
7 command: --api --docker # Enables the web UI and tells Træfik to listen to docker
8 ports:
9 - "80:80" # The HTTP port
10 - "443:443" # The HTTPS port
11 - "8080:8080" # The Web UI (enabled by --api)
12 volumes:
13 - /var/run/docker.sock:/var/run/docker.sock # So that Traefik can listen to the Docker events
14 - ./docker-volume/traefik/acme.json:/etc/acme.json
15 - ./docker-volume/traefik/traefik.toml:/traefik.toml
16 restart: "always"
17
18 peertube:
19 # If you don't want to use the official image and build one from sources
20 # build:
21 # context: .
22 # dockerfile: ./support/docker/production/Dockerfile.stretch
23 image: chocobozzz/peertube:production-stretch
24 environment:
25 PEERTUBE_WEBSERVER_HOSTNAME: my.domain.tld
26 PEERTUBE_WEBSERVER_PORT: 443
27 PEERTUBE_WEBSERVER_HTTPS: "true"
28 PEERTUBE_ADMIN_EMAIL: admin@domain.tld
29 PEERTUBE_DB_HOSTNAME: postgres
30 PEERTUBE_DB_USERNAME: postgres_user
31 PEERTUBE_DB_PASSWORD: postgres_password
32 PEERTUBE_SIGNUP_ENABLED: "true"
33 PEERTUBE_TRANSCODING_ENABLED: "true"
34 PEERTUBE_REDIS_HOSTNAME: redis
35 PEERTUBE_SMTP_USERNAME: null
36 PEERTUBE_SMTP_PASSWORD: null
37 PEERTUBE_SMTP_HOSTNAME: null
38 PEERTUBE_SMTP_PORT: 25
39 PEERTUBE_SMTP_FROM: noreply@peertube.domain.tld
40 PEERTUBE_SMTP_TLS: "true"
41 # Traefik labels are suggested as an example for people using Traefik,
42 # remove them if you are using another reverse proxy.
43 labels:
44 traefik.enable: "true"
45 traefik.frontend.rule: "Host:${PEERTUBE_WEBSERVER_HOSTNAME}"
46 traefik.port: "9000"
47 # If you don't want to use a reverse proxy (not suitable for production!)
48 # ports:
49 # - "80:9000"
50 volumes:
51 - ./docker-volume/data:/data
52 - ./docker-volume/config:/config
53 depends_on:
54 - postgres
55 - redis
56 restart: "always"
57
58 postgres:
59 image: postgres:10-alpine
60 environment:
61 POSTGRES_USER: postgres_user
62 POSTGRES_PASSWORD: postgres_password
63 POSTGRES_DB: peertube
64 volumes:
65 - ./docker-volume/db:/var/lib/postgresql/data
66 restart: "always"
67 labels:
68 traefik.enable: "false"
69
70 redis:
71 image: redis:4-alpine
72 volumes:
73 - ./docker-volume/redis:/data
74 restart: "always"
75 labels:
76 traefik.enable: "false"