Adapt docker image file path in docker-compose.yml
authorFlorent Fayolle <florent.fayolle69@gmail.com>
Mon, 30 Apr 2018 15:26:07 +0000 (17:26 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 7 May 2018 07:22:18 +0000 (09:22 +0200)
support/doc/docker.md
support/docker/production/docker-compose.yml

index e0c03a1dc253a39378e6666eb6b4c78371bd24e9..093d7124edbd3782276bf53517f5159332051921 100644 (file)
@@ -22,7 +22,7 @@ production, you can use a `docker-compose` setup.
 
 ```bash
 $ git clone https://github.com/chocobozzz/PeerTube /tmp/peertube
-$ cd /tmp/peertube/support/docker/production
+$ cd /tmp/peertube
 ```
 
 Then tweak the `docker-compose.yml` file there according to your needs. Then
@@ -37,7 +37,7 @@ $ PEERTUBE_HOSTNAME=peertube.lvh.me \
   PEERTUBE_SMTP_HOST=mail.lvh.me \
   PEERTUBE_SMTP_PORT=1025 \
   PEERTUBE_SMTP_FROM=noreply@peertube.lvh.me \
-    docker-compose up
+    docker-compose -f support/docker/production/docker-compose.yml --project-directory . up
 ```
 
 Other environment variables are used in
index ac0a3543b69d91c2ae79054c50f4ec99e0758e59..a7bac47c29e22010784afa0f6bc74d8625d823d8 100644 (file)
@@ -5,7 +5,7 @@ services:
   peertube:
     build:
       context: .
-      dockerfile: ./Dockerfile.stretch
+      dockerfile: ./support/docker/production/Dockerfile.stretch
     image: chocobozzz/peertube:production-stretch
     environment:
       PEERTUBE_HOSTNAME: my.domain.tld