mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Environment variables for Docker Compose
This commit is contained in:
committed by
Chocobozzz
parent
f8b4475386
commit
f83e339b82
15
support/docker/production/.env
Normal file
15
support/docker/production/.env
Normal file
@@ -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=noreply@peertube.domain.tld
|
||||
PEERTUBE_SMTP_TLS="true"
|
||||
PEERTUBE_ADMIN_EMAIL=admin@domain.tld
|
||||
PEERTUBE_SIGNUP_ENABLED="true"
|
||||
PEERTUBE_TRANSCODING_ENABLED="true"
|
||||
@@ -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: noreply@peertube.domain.tld
|
||||
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: admin@domain.tld
|
||||
# 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"
|
||||
|
||||
Reference in New Issue
Block a user