]>
Commit | Line | Data |
---|---|---|
e8395f02 | 1 | version: "3.3" |
2 | ||
3 | services: | |
e8395f02 | 4 | |
ef48a0d5 BB |
5 | peertube: |
6 | build: | |
7 | context: ../../../ | |
8 | dockerfile: ./support/docker/production/Dockerfile.stretch | |
e8395f02 | 9 | image: peertube:stretch |
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 | |
21 | PEERTUBE_SMTP_HOSTNAME: mail.domain.tld | |
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" | |
31 | volumes: | |
32 | - ./data:/usr/src/app/data | |
33 | depends_on: | |
ef48a0d5 BB |
34 | - postgres |
35 | - redis | |
36 | restart: "always" | |
e8395f02 | 37 | |
ef48a0d5 | 38 | postgres: |
0c49373a | 39 | image: postgres:10-alpine |
e8395f02 | 40 | environment: |
ef48a0d5 BB |
41 | POSTGRES_USER: postgres_user |
42 | POSTGRES_PASSWORD: postgres_password | |
43 | POSTGRES_DB: peertube | |
e8395f02 | 44 | volumes: |
45 | - ./db:/var/lib/postgresql/data | |
ef48a0d5 BB |
46 | restart: "always" |
47 | ||
48 | redis: | |
0c49373a | 49 | image: redis:4-alpine |
ef48a0d5 BB |
50 | volumes: |
51 | - ./redis:/data | |
52 | restart: "always" |