]> git.parisson.com Git - telemeta.git/commitdiff
Start in DEV mode by default, use 8000 port for every env
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Fri, 4 Oct 2019 06:11:13 +0000 (08:11 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Fri, 4 Oct 2019 06:11:13 +0000 (08:11 +0200)
README.rst
docker-compose.yml
env/dev.yml

index 5e7d8f7b6c9b7518f06c9ea38da36cf7bba80f91..2f2155fd92fd94425e00c0fe164d2ffa5fc17607 100644 (file)
@@ -164,15 +164,23 @@ Then clone Telemeta::
 Start it up
 ===========
 
-For a production environment setup, first read / edit `env/prod.env`, then::
+To start the application ONLY for testing or developing purposes::
 
     docker-compose up
 
 Then browse the app at http://localhost:8000/ (replacing 'localhost' by the IP given by the docker terminal on OSX or Windows)
 
-To start the application in DEBUG mode::
+Note that the service will automatically be reloaded when any code of the app is modified.
+
+For a production environment setup, first read / edit `env/prod.env`, then::
+
+    docker-compose -f docker-compose.yml -f env/prod.yml up
+
+This will provide the uwsgi port 8000 for which you should setup an exernal Nginx server using uwsgi_pass.
 
-    docker-compose -f docker-compose.yml -f env/debug.yml up
+You can also use the nginx container like this::
+
+    docker-compose -f docker-compose.yml -f env/prod.yml -f env/nginx.yml up
 
 Be **CAREFULL** in production:
 
@@ -220,15 +228,6 @@ API / Documentation
 Development
 ===========
 
-To start the application in a development environment setup, first read / edit `env/debug.env`, then::
-
-    cd Telemeta
-    git pull
-    git checkout dev
-    docker-compose -f docker-compose.yml -f env/dev.yml up
-
-Then browse the app at http://localhost:9100/ (replacing 'localhost' by the IP given by the docker terminal on OSX or Windows). Note that the service will automatically be reloaded when any code of the app is modified.
-
 You are welcome to participate to the development by forking the Telemeta project on GitHub_, using it as if it were the original and submitting your changes through a Pull Request on the **dev branch ONLY**.
 
 
index 7c7e1f33958c6704bfb0f58dd2219a371def4ff8..505d909bef9dd3bbbbfb5b84dfdea828adc45bec 100644 (file)
@@ -60,12 +60,14 @@ app:
   volumes_from:
     - data
   env_file:
-    - env/prod.env
-  command: /bin/bash bin/app.sh
+    - env/debug.env
+  command: /bin/bash bin/app.sh --runserver
   links:
     - broker
     - db
     - search
+  ports:
+    - "8000:8000"
 
 worker:
   image: parisson/telemeta:1.7
index 5b33658e6f0132c15913aadf05d28da7aa247a3c..89ad56ec32f9edd94bd23b5e048646db88c2cd64 100644 (file)
@@ -28,7 +28,7 @@ app:
     - env/debug.env
   command: /bin/bash bin/app.sh --runserver
   ports:
-    - 9100:8000
+    - 8000:8000
   volumes:
     - ./lib/TimeSide:/srv/lib/timeside