aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/docker
diff options
context:
space:
mode:
Diffstat (limited to 'support/docker')
-rw-r--r--support/docker/production/.env9
-rw-r--r--support/docker/production/docker-compose.yml10
2 files changed, 11 insertions, 8 deletions
diff --git a/support/docker/production/.env b/support/docker/production/.env
index c8393d0ce..95ca42d69 100644
--- a/support/docker/production/.env
+++ b/support/docker/production/.env
@@ -1,5 +1,9 @@
1PEERTUBE_DB_USERNAME=postgres_user 1POSTGRES_USER=peertube
2PEERTUBE_DB_PASSWORD=postgres_password 2POSTGRES_PASSWORD=peertube
3POSTGRES_DB=peertube
4PEERTUBE_DB_USERNAME=$(POSTGRES_USER)
5PEERTUBE_DB_PASSWORD=$(POSTGRES_PASSWORD)
6PEERTUBE_DB_HOSTNAME=postgres
3PEERTUBE_WEBSERVER_HOSTNAME=domain.tld 7PEERTUBE_WEBSERVER_HOSTNAME=domain.tld
4PEERTUBE_WEBSERVER_PORT=443 8PEERTUBE_WEBSERVER_PORT=443
5PEERTUBE_WEBSERVER_HTTPS=true 9PEERTUBE_WEBSERVER_HTTPS=true
@@ -14,6 +18,7 @@ PEERTUBE_SMTP_FROM=noreply@domain.tld
14PEERTUBE_SMTP_TLS=false 18PEERTUBE_SMTP_TLS=false
15PEERTUBE_SMTP_DISABLE_STARTTLS=false 19PEERTUBE_SMTP_DISABLE_STARTTLS=false
16PEERTUBE_ADMIN_EMAIL=admin@domain.tld 20PEERTUBE_ADMIN_EMAIL=admin@domain.tld
21POSTFIX_myhostname=${PEERTUBE_WEBSERVER_HOSTNAME}
17# /!\ Prefer to use the PeerTube admin interface to set the following configurations /!\ 22# /!\ Prefer to use the PeerTube admin interface to set the following configurations /!\
18#PEERTUBE_SIGNUP_ENABLED=true 23#PEERTUBE_SIGNUP_ENABLED=true
19#PEERTUBE_TRANSCODING_ENABLED=true 24#PEERTUBE_TRANSCODING_ENABLED=true
diff --git a/support/docker/production/docker-compose.yml b/support/docker/production/docker-compose.yml
index 3786ae675..9f6c47eca 100644
--- a/support/docker/production/docker-compose.yml
+++ b/support/docker/production/docker-compose.yml
@@ -47,10 +47,8 @@ services:
47 47
48 postgres: 48 postgres:
49 image: postgres:10-alpine 49 image: postgres:10-alpine
50 environment: 50 env_file:
51 POSTGRES_USER: ${PEERTUBE_DB_USERNAME} 51 - .env
52 POSTGRES_PASSWORD: ${PEERTUBE_DB_PASSWORD}
53 POSTGRES_DB: peertube
54 volumes: 52 volumes:
55 - ./docker-volume/db:/var/lib/postgresql/data 53 - ./docker-volume/db:/var/lib/postgresql/data
56 restart: "always" 54 restart: "always"
@@ -67,8 +65,8 @@ services:
67 65
68 postfix: 66 postfix:
69 image: mwader/postfix-relay 67 image: mwader/postfix-relay
70 environment: 68 env_file:
71 - POSTFIX_myhostname=${PEERTUBE_WEBSERVER_HOSTNAME} 69 - .env
72 labels: 70 labels:
73 traefik.enable: "false" 71 traefik.enable: "false"
74 restart: "always" 72 restart: "always"