diff options
author | Kim <1877318+kimsible@users.noreply.github.com> | 2020-05-18 17:50:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-18 17:50:58 +0200 |
commit | 148ab2f0f043a4c7cc28f9497cb6ae3819e8b838 (patch) | |
tree | a42494e2843d06a3dc18bfd76d5a41565014ab89 | |
parent | 51539e95d954867d5c4561ac56843105253db79c (diff) | |
download | PeerTube-148ab2f0f043a4c7cc28f9497cb6ae3819e8b838.tar.gz PeerTube-148ab2f0f043a4c7cc28f9497cb6ae3819e8b838.tar.zst PeerTube-148ab2f0f043a4c7cc28f9497cb6ae3819e8b838.zip |
Fixes docker-compose .env (#2538)
* chore: remove unused var
* fix database name as peertube + update comments
* chore: comment vars indentic to production.yrml
* add smtp comment
* clarify and detail comments
Co-authored-by: kimsible <kimsible@users.noreply.github.com>
-rw-r--r-- | support/doc/docker.md | 1 | ||||
-rw-r--r-- | support/docker/production/.env | 26 |
2 files changed, 22 insertions, 5 deletions
diff --git a/support/doc/docker.md b/support/doc/docker.md index c599af0f9..c1173972a 100644 --- a/support/doc/docker.md +++ b/support/doc/docker.md | |||
@@ -84,7 +84,6 @@ vim ./.env | |||
84 | In the downloaded example [.env](https://github.com/Chocobozzz/PeerTube/blob/master/support/docker/production/.env), you must replace: | 84 | In the downloaded example [.env](https://github.com/Chocobozzz/PeerTube/blob/master/support/docker/production/.env), you must replace: |
85 | - `<MY POSTGRES USERNAME>` | 85 | - `<MY POSTGRES USERNAME>` |
86 | - `<MY POSTGRES PASSWORD>` | 86 | - `<MY POSTGRES PASSWORD>` |
87 | - `<MY POSTGRES DB>` | ||
88 | - `<MY DOMAIN>` without 'https://' | 87 | - `<MY DOMAIN>` without 'https://' |
89 | - `<MY EMAIL ADDRESS>` | 88 | - `<MY EMAIL ADDRESS>` |
90 | 89 | ||
diff --git a/support/docker/production/.env b/support/docker/production/.env index 4743b68db..8ed9b062b 100644 --- a/support/docker/production/.env +++ b/support/docker/production/.env | |||
@@ -1,32 +1,50 @@ | |||
1 | # Database / Postgres service configuration | ||
1 | POSTGRES_USER=<MY POSTGRES USERNAME> | 2 | POSTGRES_USER=<MY POSTGRES USERNAME> |
2 | POSTGRES_PASSWORD=<MY POSTGRES PASSWORD> | 3 | POSTGRES_PASSWORD=<MY POSTGRES PASSWORD> |
3 | POSTGRES_DB=<MY POSTGRES DB> | 4 | # Postgres database name "peertube" |
5 | POSTGRES_DB=peertube | ||
6 | # Editable only with a suffix : | ||
7 | #POSTGRES_DB=peertube_prod | ||
8 | #PEERTUBE_DB_SUFFIX=_prod | ||
4 | PEERTUBE_DB_USERNAME=<MY POSTGRES USERNAME> | 9 | PEERTUBE_DB_USERNAME=<MY POSTGRES USERNAME> |
5 | PEERTUBE_DB_PASSWORD=<MY POSTGRES PASSWORD> | 10 | PEERTUBE_DB_PASSWORD=<MY POSTGRES PASSWORD> |
6 | # PEERTUBE_DB_HOSTNAME is the Postgres service name in docker-compose.yml | 11 | # Default to Postgres service name "postgres" in docker-compose.yml |
7 | PEERTUBE_DB_HOSTNAME=postgres | 12 | PEERTUBE_DB_HOSTNAME=postgres |
13 | |||
14 | # Server configuration | ||
8 | PEERTUBE_WEBSERVER_HOSTNAME=<MY DOMAIN> | 15 | PEERTUBE_WEBSERVER_HOSTNAME=<MY DOMAIN> |
9 | PEERTUBE_WEBSERVER_PORT=443 | 16 | # If you do not use https and a reverse-proxy in docker-compose.yml |
10 | PEERTUBE_WEBSERVER_HTTPS=true | 17 | #PEERTUBE_WEBSERVER_PORT=80 |
18 | #PEERTUBE_WEBSERVER_HTTPS=false | ||
11 | # If you need more than one IP as trust_proxy | 19 | # If you need more than one IP as trust_proxy |
12 | # pass them as a comma separated array: | 20 | # pass them as a comma separated array: |
13 | PEERTUBE_TRUST_PROXY=["127.0.0.1", "loopback", "172.18.0.0/16"] | 21 | PEERTUBE_TRUST_PROXY=["127.0.0.1", "loopback", "172.18.0.0/16"] |
22 | |||
23 | # E-mail configuration | ||
24 | # If you use a Custom SMTP server | ||
14 | #PEERTUBE_SMTP_USERNAME= | 25 | #PEERTUBE_SMTP_USERNAME= |
15 | #PEERTUBE_SMTP_PASSWORD= | 26 | #PEERTUBE_SMTP_PASSWORD= |
27 | # Default to Postfix service name "postfix" in docker-compose.yml | ||
28 | # May be the hostname of your Custom SMTP server | ||
16 | PEERTUBE_SMTP_HOSTNAME=postfix | 29 | PEERTUBE_SMTP_HOSTNAME=postfix |
17 | PEERTUBE_SMTP_PORT=25 | 30 | PEERTUBE_SMTP_PORT=25 |
18 | PEERTUBE_SMTP_FROM=noreply@<MY DOMAIN> | 31 | PEERTUBE_SMTP_FROM=noreply@<MY DOMAIN> |
19 | PEERTUBE_SMTP_TLS=false | 32 | PEERTUBE_SMTP_TLS=false |
20 | PEERTUBE_SMTP_DISABLE_STARTTLS=false | 33 | PEERTUBE_SMTP_DISABLE_STARTTLS=false |
21 | PEERTUBE_ADMIN_EMAIL=<MY EMAIL ADDRESS> | 34 | PEERTUBE_ADMIN_EMAIL=<MY EMAIL ADDRESS> |
35 | |||
36 | # Postfix service configuration | ||
22 | POSTFIX_myhostname=<MY DOMAIN> | 37 | POSTFIX_myhostname=<MY DOMAIN> |
23 | # If you need to generate a list of sub/DOMAIN keys | 38 | # If you need to generate a list of sub/DOMAIN keys |
24 | # pass them as a whitespace separated string <DOMAIN>=<selector> | 39 | # pass them as a whitespace separated string <DOMAIN>=<selector> |
25 | OPENDKIM_DOMAINS=<MY DOMAIN>=peertube | 40 | OPENDKIM_DOMAINS=<MY DOMAIN>=peertube |
41 | |||
42 | # Let's Encrypt service configuration | ||
26 | TRAEFIK_ACME_EMAIL=<MY EMAIL ADDRESS> | 43 | TRAEFIK_ACME_EMAIL=<MY EMAIL ADDRESS> |
27 | # If you need to obtain ACME certificates for more than one DOMAIN | 44 | # If you need to obtain ACME certificates for more than one DOMAIN |
28 | # pass them as a comma separated string | 45 | # pass them as a comma separated string |
29 | TRAEFIK_ACME_DOMAINS=<MY DOMAIN> | 46 | TRAEFIK_ACME_DOMAINS=<MY DOMAIN> |
47 | |||
30 | # /!\ Prefer to use the PeerTube admin interface to set the following configurations /!\ | 48 | # /!\ Prefer to use the PeerTube admin interface to set the following configurations /!\ |
31 | #PEERTUBE_SIGNUP_ENABLED=true | 49 | #PEERTUBE_SIGNUP_ENABLED=true |
32 | #PEERTUBE_TRANSCODING_ENABLED=true | 50 | #PEERTUBE_TRANSCODING_ENABLED=true |