-PEERTUBE_DB_USERNAME=postgres_user
-PEERTUBE_DB_PASSWORD=postgres_password
+POSTGRES_USER=peertube
+POSTGRES_PASSWORD=peertube
+POSTGRES_DB=peertube
+PEERTUBE_DB_USERNAME=$(POSTGRES_USER)
+PEERTUBE_DB_PASSWORD=$(POSTGRES_PASSWORD)
+PEERTUBE_DB_HOSTNAME=postgres
PEERTUBE_WEBSERVER_HOSTNAME=domain.tld
PEERTUBE_WEBSERVER_PORT=443
PEERTUBE_WEBSERVER_HTTPS=true
PEERTUBE_SMTP_TLS=false
PEERTUBE_SMTP_DISABLE_STARTTLS=false
PEERTUBE_ADMIN_EMAIL=admin@domain.tld
+POSTFIX_myhostname=${PEERTUBE_WEBSERVER_HOSTNAME}
# /!\ Prefer to use the PeerTube admin interface to set the following configurations /!\
#PEERTUBE_SIGNUP_ENABLED=true
#PEERTUBE_TRANSCODING_ENABLED=true
postgres:
image: postgres:10-alpine
- environment:
- POSTGRES_USER: ${PEERTUBE_DB_USERNAME}
- POSTGRES_PASSWORD: ${PEERTUBE_DB_PASSWORD}
- POSTGRES_DB: peertube
+ env_file:
+ - .env
volumes:
- ./docker-volume/db:/var/lib/postgresql/data
restart: "always"
postfix:
image: mwader/postfix-relay
- environment:
- - POSTFIX_myhostname=${PEERTUBE_WEBSERVER_HOSTNAME}
+ env_file:
+ - .env
labels:
traefik.enable: "false"
restart: "always"