From f6f0b01da70ea7fc3457b5c04d65d7903cfefd02 Mon Sep 17 00:00:00 2001
From: Alax Alves <alaxallves@gmail.com>
Date: Tue, 5 Mar 2019 22:13:56 -0300
Subject: [PATCH] Updating README with docker setup

---
 README.md          | 28 ++++++++++++++++++++++++++++
 docker-compose.yml |  2 --
 2 files changed, 28 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 0f2a8f26de..0d3ab28bc6 100644
--- a/README.md
+++ b/README.md
@@ -70,6 +70,34 @@ in your browser to access the preview.
 
 **Note:** The build of the site will take several minutes.
 
+### Preview with Docker
+
+Run the following
+
+``` sh
+docker run -it --name ruby-lang -v $PWD:/www.ruby-lang.org -w /www.ruby-lang.org --network host ruby:2.6.1 sh -c "bundle install --without production && bundle exec rake serve"
+```
+
+to generate the website and start a local web server
+
+
+Open [http://localhost:9292/](http://localhost:9292/)
+in your browser to access the preview.
+
+### Preview with Docker Compose
+
+Run the following
+
+``` sh
+docker-compose up
+```
+
+to generate the website and start a local web server
+
+
+Open [http://localhost:9292/](http://localhost:9292/)
+in your browser to access the preview.
+
 ### Preview on Heroku
 
 In case a build is not possible on your local machine
diff --git a/docker-compose.yml b/docker-compose.yml
index c9eddfd2d2..c9a007f32d 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -3,8 +3,6 @@ services:
   web:
     container_name: ruby-lang
     image: ruby:2.6.1
-    environment:
-      - RAILS_ENV=development
     command: >
       sh -c "bundle check || bundle install --without production &&
              bundle exec rake build &&