]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - support/docker/production/docker-compose.yml
Fix docker env file
[github/Chocobozzz/PeerTube.git] / support / docker / production / docker-compose.yml
index 32ee7511305882ed0278ae24f5b2b6b7b952030d..220c19fba2dfae5db6aa40cb9f88312799a8f23e 100644 (file)
@@ -21,23 +21,8 @@ services:
     #   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:
@@ -58,8 +43,8 @@ services:
   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
@@ -73,4 +58,4 @@ services:
       - ./docker-volume/redis:/data
     restart: "always"
     labels:
-      traefik.enable: "false"
\ No newline at end of file
+      traefik.enable: "false"