Fix docker env file

pull/923/head
Chocobozzz 2018-08-14 10:13:17 +02:00
parent e5e7f7fe99
commit 08c11bec43
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
3 changed files with 7 additions and 5 deletions

View File

@ -1,5 +1,5 @@
DB_USERNAME=postgres_user PEERTUBE_DB_USERNAME=postgres_user
DB_PASSWORD=postgres_password PEERTUBE_DB_PASSWORD=postgres_password
PEERTUBE_WEBSERVER_HOSTNAME=domain.tld PEERTUBE_WEBSERVER_HOSTNAME=domain.tld
PEERTUBE_WEBSERVER_PORT=443 PEERTUBE_WEBSERVER_PORT=443
PEERTUBE_WEBSERVER_HTTPS=true PEERTUBE_WEBSERVER_HTTPS=true

View File

@ -18,7 +18,7 @@ trust_proxy:
# Your database name will be "peertube"+database.suffix # Your database name will be "peertube"+database.suffix
database: database:
hostname: 'db' hostname: 'postgres'
port: 5432 port: 5432
suffix: '' suffix: ''
username: 'postgres' username: 'postgres'

View File

@ -21,6 +21,8 @@ services:
# context: . # context: .
# dockerfile: ./support/docker/production/Dockerfile.stretch # dockerfile: ./support/docker/production/Dockerfile.stretch
image: chocobozzz/peertube:production-stretch image: chocobozzz/peertube:production-stretch
env_file:
- .env
# Traefik labels are suggested as an example for people using Traefik, # Traefik labels are suggested as an example for people using Traefik,
# remove them if you are using another reverse proxy. # remove them if you are using another reverse proxy.
labels: labels:
@ -41,8 +43,8 @@ services:
postgres: postgres:
image: postgres:10-alpine image: postgres:10-alpine
environment: environment:
POSTGRES_USER: ${DB_USERNAME} POSTGRES_USER: ${PEERTUBE_DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_PASSWORD: ${PEERTUBE_DB_PASSWORD}
POSTGRES_DB: peertube POSTGRES_DB: peertube
volumes: volumes:
- ./docker-volume/db:/var/lib/postgresql/data - ./docker-volume/db:/var/lib/postgresql/data