# context: .
# 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_ADMIN_EMAIL: admin@domain.tld
- PEERTUBE_DB_HOSTNAME: postgres
- PEERTUBE_DB_USERNAME: postgres_user
- PEERTUBE_DB_PASSWORD: postgres_password
- PEERTUBE_SIGNUP_ENABLED: "true"
- PEERTUBE_TRANSCODING_ENABLED: "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"
+ env_file:
+ - .env
# Traefik labels are suggested as an example for people using Traefik,
# remove them if you are using another reverse proxy.
labels:
postgres:
image: postgres:10-alpine
environment:
- POSTGRES_USER: postgres_user
- POSTGRES_PASSWORD: postgres_password
+ POSTGRES_USER: ${PEERTUBE_DB_USERNAME}
+ POSTGRES_PASSWORD: ${PEERTUBE_DB_PASSWORD}
POSTGRES_DB: peertube
volumes:
- ./docker-volume/db:/var/lib/postgresql/data
- ./docker-volume/redis:/data
restart: "always"
labels:
- traefik.enable: "false"
\ No newline at end of file
+ traefik.enable: "false"