diff options
Diffstat (limited to 'support/docker')
-rw-r--r-- | support/docker/production/config/custom-environment-variables.yaml | 2 | ||||
-rw-r--r-- | support/docker/production/config/production.yaml | 4 | ||||
-rw-r--r-- | support/docker/production/docker-compose.yml | 41 |
3 files changed, 34 insertions, 13 deletions
diff --git a/support/docker/production/config/custom-environment-variables.yaml b/support/docker/production/config/custom-environment-variables.yaml index 9139125a5..b53405c46 100644 --- a/support/docker/production/config/custom-environment-variables.yaml +++ b/support/docker/production/config/custom-environment-variables.yaml | |||
@@ -33,7 +33,7 @@ smtp: | |||
33 | tls: | 33 | tls: |
34 | __name: "PEERTUBE_SMTP_TLS" | 34 | __name: "PEERTUBE_SMTP_TLS" |
35 | __format: "json" | 35 | __format: "json" |
36 | form_address: "PEERTUBE_ADMIN_EMAIL" | 36 | from_address: "PEERTUBE_SMTP_FROM" |
37 | 37 | ||
38 | admin: | 38 | admin: |
39 | email: "PEERTUBE_ADMIN_EMAIL" | 39 | email: "PEERTUBE_ADMIN_EMAIL" |
diff --git a/support/docker/production/config/production.yaml b/support/docker/production/config/production.yaml index 3cc72e573..c00cf7510 100644 --- a/support/docker/production/config/production.yaml +++ b/support/docker/production/config/production.yaml | |||
@@ -78,3 +78,7 @@ instance: | |||
78 | name: 'PeerTube' | 78 | name: 'PeerTube' |
79 | description: '' # Support markdown | 79 | description: '' # Support markdown |
80 | terms: '' # Support markdown | 80 | terms: '' # Support markdown |
81 | default_client_route: '/videos/trending' | ||
82 | customizations: | ||
83 | javascript: '' # Directly your JavaScript code (without <script> tags). Will be eval at runtime | ||
84 | css: '' # Directly your CSS code (without <style> tags). Will be injected at runtime | ||
diff --git a/support/docker/production/docker-compose.yml b/support/docker/production/docker-compose.yml index db1c7d587..b08cace76 100644 --- a/support/docker/production/docker-compose.yml +++ b/support/docker/production/docker-compose.yml | |||
@@ -1,19 +1,27 @@ | |||
1 | version: "3.3" | 1 | version: "3.3" |
2 | 2 | ||
3 | services: | 3 | services: |
4 | peertube: | ||
5 | 4 | ||
6 | build: . | 5 | peertube: |
6 | build: | ||
7 | context: ../../../ | ||
8 | dockerfile: ./support/docker/production/Dockerfile.stretch | ||
7 | image: peertube:stretch | 9 | image: peertube:stretch |
8 | environment: | 10 | environment: |
9 | PEERTUBE_HOSTNAME: my.domain.tld | 11 | PEERTUBE_HOSTNAME: my.domain.tld |
10 | PEERTUBE_PORT: 443 | 12 | PEERTUBE_PORT: 443 |
11 | PEERTUBE_HTTPS: true | 13 | PEERTUBE_HTTPS: "true" |
12 | PEERTUBE_ADMIN_EMAIL: admin@domain.tld | 14 | PEERTUBE_ADMIN_EMAIL: admin@domain.tld |
13 | PEERTUBE_DB_USERNAME: user | 15 | PEERTUBE_DB_HOSTNAME: postgres |
14 | PEERTUBE_DB_PASSWORD: password | 16 | PEERTUBE_DB_USERNAME: postgres_user |
15 | PEERTUBE_SIGNUP_ENABLED: true | 17 | PEERTUBE_DB_PASSWORD: postgres_password |
16 | PEERTUBE_TRANSCODING_ENABLED: true | 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" | ||
17 | # Traefik labels are suggested as an example for people using Traefik, | 25 | # Traefik labels are suggested as an example for people using Traefik, |
18 | # remove them if you are using another reverse proxy. | 26 | # remove them if you are using another reverse proxy. |
19 | labels: | 27 | labels: |
@@ -23,13 +31,22 @@ services: | |||
23 | volumes: | 31 | volumes: |
24 | - ./data:/usr/src/app/data | 32 | - ./data:/usr/src/app/data |
25 | depends_on: | 33 | depends_on: |
26 | - db | 34 | - postgres |
35 | - redis | ||
36 | restart: "always" | ||
27 | 37 | ||
28 | db: | 38 | postgres: |
29 | image: postgres:10 | 39 | image: postgres:10 |
30 | environment: | 40 | environment: |
31 | POSTGRES_USERNAME: user | 41 | POSTGRES_USER: postgres_user |
32 | POSTGRES_PASSWORD: password | 42 | POSTGRES_PASSWORD: postgres_password |
33 | POSTGRES_DB: peertube_prod | 43 | POSTGRES_DB: peertube |
34 | volumes: | 44 | volumes: |
35 | - ./db:/var/lib/postgresql/data | 45 | - ./db:/var/lib/postgresql/data |
46 | restart: "always" | ||
47 | |||
48 | redis: | ||
49 | image: redis | ||
50 | volumes: | ||
51 | - ./redis:/data | ||
52 | restart: "always" | ||