]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix docker env file
authorChocobozzz <me@florianbigard.com>
Tue, 14 Aug 2018 08:13:17 +0000 (10:13 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 14 Aug 2018 08:13:17 +0000 (10:13 +0200)
support/docker/production/.env
support/docker/production/config/production.yaml
support/docker/production/docker-compose.yml

index 9edc183b61f0cb16d1c4e91127b1392ec3fda783..51c4e0acea07066f2ffeb423d5f1ba77b526da71 100644 (file)
@@ -1,5 +1,5 @@
-DB_USERNAME=postgres_user
-DB_PASSWORD=postgres_password
+PEERTUBE_DB_USERNAME=postgres_user
+PEERTUBE_DB_PASSWORD=postgres_password
 PEERTUBE_WEBSERVER_HOSTNAME=domain.tld
 PEERTUBE_WEBSERVER_PORT=443
 PEERTUBE_WEBSERVER_HTTPS=true
index ddac23c4ebc441e666791b21f687e14c6113ea70..4970bbccab70497b769c73563d8383e12afc1b12 100644 (file)
@@ -18,7 +18,7 @@ trust_proxy:
 
 # Your database name will be "peertube"+database.suffix
 database:
-  hostname: 'db'
+  hostname: 'postgres'
   port: 5432
   suffix: ''
   username: 'postgres'
index 5b8f5700a3cb354112dc0a1ea6b9d1924e89deb3..220c19fba2dfae5db6aa40cb9f88312799a8f23e 100644 (file)
@@ -21,6 +21,8 @@ services:
     #   context: .
     #   dockerfile: ./support/docker/production/Dockerfile.stretch
     image: chocobozzz/peertube:production-stretch
+    env_file:
+      - .env
     # Traefik labels are suggested as an example for people using Traefik,
     # remove them if you are using another reverse proxy.
     labels:
@@ -41,8 +43,8 @@ services:
   postgres:
     image: postgres:10-alpine
     environment:
-      POSTGRES_USER: ${DB_USERNAME}
-      POSTGRES_PASSWORD: ${DB_PASSWORD}
+      POSTGRES_USER: ${PEERTUBE_DB_USERNAME}
+      POSTGRES_PASSWORD: ${PEERTUBE_DB_PASSWORD}
       POSTGRES_DB: peertube
     volumes:
       - ./docker-volume/db:/var/lib/postgresql/data