forked from Chocobozzz/PeerTube
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Environment variables for Docker Compose
- Loading branch information
1 parent
f8b4475
commit f83e339
Showing
3 changed files
with
49 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
DB_USERNAME=postgres_user | ||
DB_PASSWORD=postgres_password | ||
PEERTUBE_WEBSERVER_HOSTNAME=my.domain.tld | ||
PEERTUBE_WEBSERVER_PORT=443 | ||
PEERTUBE_WEBSERVER_HTTPS="true" | ||
PEERTUBE_REDIS_HOSTNAME=redis | ||
PEERTUBE_SMTP_USERNAME=null | ||
PEERTUBE_SMTP_PASSWORD=null | ||
PEERTUBE_SMTP_HOSTNAME=null | ||
PEERTUBE_SMTP_PORT=25 | ||
PEERTUBE_SMTP_FROM=[email protected] | ||
PEERTUBE_SMTP_TLS="true" | ||
PEERTUBE_ADMIN_EMAIL=[email protected] | ||
PEERTUBE_SIGNUP_ENABLED="true" | ||
PEERTUBE_TRANSCODING_ENABLED="true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,23 +22,23 @@ services: | |
# dockerfile: ./support/docker/production/Dockerfile.stretch | ||
image: chocobozzz/peertube:production-stretch | ||
environment: | ||
PEERTUBE_WEBSERVER_HOSTNAME: my.domain.tld | ||
PEERTUBE_WEBSERVER_PORT: 443 | ||
PEERTUBE_WEBSERVER_HTTPS: "true" | ||
PEERTUBE_WEBSERVER_HOSTNAME: ${PEERTUBE_WEBSERVER_HOSTNAME} | ||
PEERTUBE_WEBSERVER_PORT: ${PEERTUBE_WEBSERVER_PORT} | ||
PEERTUBE_WEBSERVER_HTTPS: ${PEERTUBE_WEBSERVER_HTTPS} | ||
PEERTUBE_DB_HOSTNAME: postgres | ||
PEERTUBE_DB_USERNAME: postgres_user | ||
PEERTUBE_DB_PASSWORD: postgres_password | ||
PEERTUBE_DB_USERNAME: ${DB_USERNAME} | ||
PEERTUBE_DB_PASSWORD: ${DB_PASSWORD} | ||
PEERTUBE_REDIS_HOSTNAME: redis | ||
PEERTUBE_SMTP_USERNAME: null | ||
PEERTUBE_SMTP_PASSWORD: null | ||
PEERTUBE_SMTP_HOSTNAME: null | ||
PEERTUBE_SMTP_PORT: 25 | ||
PEERTUBE_SMTP_FROM: [email protected] | ||
PEERTUBE_SMTP_TLS: "true" | ||
PEERTUBE_SMTP_USERNAME: ${PEERTUBE_SMTP_USERNAME} | ||
PEERTUBE_SMTP_PASSWORD: ${PEERTUBE_SMTP_PASSWORD} | ||
PEERTUBE_SMTP_HOSTNAME: ${PEERTUBE_SMTP_HOSTNAME} | ||
PEERTUBE_SMTP_PORT: ${PEERTUBE_SMTP_PORT} | ||
PEERTUBE_SMTP_FROM: ${PEERTUBE_SMTP_FROM} | ||
PEERTUBE_SMTP_TLS: ${PEERTUBE_SMTP_TLS} | ||
# /!\ Prefer to use the PeerTube admin interface to set the following configurations /!\ | ||
# PEERTUBE_ADMIN_EMAIL: [email protected] | ||
# PEERTUBE_SIGNUP_ENABLED: "true" | ||
# PEERTUBE_TRANSCODING_ENABLED: "true" | ||
# PEERTUBE_ADMIN_EMAIL: ${PEERTUBE_ADMIN_EMAIL} | ||
# PEERTUBE_SIGNUP_ENABLED: ${PEERTUBE_SIGNUP_ENABLED} | ||
# PEERTUBE_TRANSCODING_ENABLED: ${PEERTUBE_TRANSCODING_ENABLED} | ||
# Traefik labels are suggested as an example for people using Traefik, | ||
# remove them if you are using another reverse proxy. | ||
labels: | ||
|
@@ -59,8 +59,8 @@ services: | |
postgres: | ||
image: postgres:10-alpine | ||
environment: | ||
POSTGRES_USER: postgres_user | ||
POSTGRES_PASSWORD: postgres_password | ||
POSTGRES_USER: ${DB_USERNAME} | ||
POSTGRES_PASSWORD: ${DB_PASSWORD} | ||
POSTGRES_DB: peertube | ||
volumes: | ||
- ./docker-volume/db:/var/lib/postgresql/data | ||
|
@@ -74,4 +74,4 @@ services: | |
- ./docker-volume/redis:/data | ||
restart: "always" | ||
labels: | ||
traefik.enable: "false" | ||
traefik.enable: "false" |