diff options
Diffstat (limited to 'support/docker')
-rw-r--r-- | support/docker/production/.env | 9 | ||||
-rw-r--r-- | support/docker/production/config/custom-environment-variables.yaml | 6 |
2 files changed, 11 insertions, 4 deletions
diff --git a/support/docker/production/.env b/support/docker/production/.env index b4e356a58..5b3b366f5 100644 --- a/support/docker/production/.env +++ b/support/docker/production/.env | |||
@@ -3,11 +3,12 @@ POSTGRES_USER=<MY POSTGRES USERNAME> | |||
3 | POSTGRES_PASSWORD=<MY POSTGRES PASSWORD> | 3 | POSTGRES_PASSWORD=<MY POSTGRES PASSWORD> |
4 | # Postgres database name "peertube" | 4 | # Postgres database name "peertube" |
5 | POSTGRES_DB=peertube | 5 | POSTGRES_DB=peertube |
6 | # Editable only with a suffix : | 6 | # The database name used by PeerTube will be PEERTUBE_DB_NAME (only if set) *OR* 'peertube'+PEERTUBE_DB_SUFFIX |
7 | #POSTGRES_DB=peertube_prod | 7 | #PEERTUBE_DB_NAME=<MY POSTGRES DB NAME> |
8 | #PEERTUBE_DB_SUFFIX=_prod | 8 | #PEERTUBE_DB_SUFFIX=_prod |
9 | PEERTUBE_DB_USERNAME=<MY POSTGRES USERNAME> | 9 | # Database username and password used by PeerTube must match Postgres', so they are copied: |
10 | PEERTUBE_DB_PASSWORD=<MY POSTGRES PASSWORD> | 10 | PEERTUBE_DB_USERNAME=$POSTGRES_USER |
11 | PEERTUBE_DB_PASSWORD=$POSTGRES_PASSWORD | ||
11 | PEERTUBE_DB_SSL=false | 12 | PEERTUBE_DB_SSL=false |
12 | # Default to Postgres service name "postgres" in docker-compose.yml | 13 | # Default to Postgres service name "postgres" in docker-compose.yml |
13 | PEERTUBE_DB_HOSTNAME=postgres | 14 | PEERTUBE_DB_HOSTNAME=postgres |
diff --git a/support/docker/production/config/custom-environment-variables.yaml b/support/docker/production/config/custom-environment-variables.yaml index 10432e6a0..8fff54229 100644 --- a/support/docker/production/config/custom-environment-variables.yaml +++ b/support/docker/production/config/custom-environment-variables.yaml | |||
@@ -1,3 +1,8 @@ | |||
1 | # | ||
2 | # This file will be read by node-config | ||
3 | # See https://github.com/node-config/node-config/wiki/Environment-Variables#custom-environment-variables | ||
4 | # | ||
5 | |||
1 | webserver: | 6 | webserver: |
2 | hostname: "PEERTUBE_WEBSERVER_HOSTNAME" | 7 | hostname: "PEERTUBE_WEBSERVER_HOSTNAME" |
3 | port: | 8 | port: |
@@ -19,6 +24,7 @@ database: | |||
19 | port: | 24 | port: |
20 | __name: "PEERTUBE_DB_PORT" | 25 | __name: "PEERTUBE_DB_PORT" |
21 | __format: "json" | 26 | __format: "json" |
27 | name: "PEERTUBE_DB_NAME" | ||
22 | suffix: "PEERTUBE_DB_SUFFIX" | 28 | suffix: "PEERTUBE_DB_SUFFIX" |
23 | username: "PEERTUBE_DB_USERNAME" | 29 | username: "PEERTUBE_DB_USERNAME" |
24 | password: "PEERTUBE_DB_PASSWORD" | 30 | password: "PEERTUBE_DB_PASSWORD" |