]> git.parisson.com Git - mezzo.git/commitdiff
change ports and add prod env with nginx
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Fri, 27 Oct 2017 12:47:07 +0000 (14:47 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Fri, 27 Oct 2017 12:47:07 +0000 (14:47 +0200)
docker-compose.yml
env/dev.yml
env/prod.yml [new file with mode: 0644]

index b5be92a9cd857819e04f7c7ed2153242edf9e914..441e5242a81bc6ef44b2c9f7a397c1819a828f51 100644 (file)
@@ -52,9 +52,7 @@ app:
     - var
   expose:
     - "8000"
-  ports:
-    - "9300:8000"
   links:
     - db
   environment:
-    - DEBUG=True
+    - DEBUG=False
index 93ebf7b71110701223cc67a90b9ccd3443a6f85d..0f5ccf42a04decc5e210598d453876ff7908c9f5 100644 (file)
@@ -2,6 +2,6 @@
 app:
   command: /bin/sh bin/app.sh --runserver
   ports:
-    - "9400:8000"
+    - "9040:8000"
   environment:
     - DEBUG=True
diff --git a/env/prod.yml b/env/prod.yml
new file mode 100644 (file)
index 0000000..119b4ba
--- /dev/null
@@ -0,0 +1,11 @@
+
+nginx:
+  image: nginx
+  ports:
+    - "8040:80"
+  volumes:
+    - ./etc/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf
+  volumes_from:
+    - var
+  links:
+    - app