]> git.parisson.com Git - teleforma.git/commitdiff
pin postgres, fix volumes
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 22 Jun 2021 07:01:04 +0000 (09:01 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 22 Jun 2021 07:01:04 +0000 (09:01 +0200)
docker-compose.yml
env/prod.yml

index 83c33c214cd18bca335fd3619c2ab4e82b71de13..ad03b4c3558c79ed912460a02ab8e634584b42b3 100644 (file)
@@ -26,7 +26,7 @@ services:
       - env/debug.env
 
   postgres:
-    image: postgres
+    image: postgres:11
     env_file:
       - env/debug.env
     environment:
@@ -55,4 +55,7 @@ services:
 
 volumes:
     app:
-    db:
+    postgres:
+    redis:
+
+
index 52e03f0eaf67b84a9eb67cdfe6d8f0352927a35f..039fb32cb9017f457ae766471c8084002b44375d 100644 (file)
@@ -2,6 +2,10 @@ version: '3'
 
 services:
   app:
+    build:
+      context: .
+      args:
+        dev: 0
     command: /bin/sh /srv/app/wsgi.sh
     restart: unless-stopped
     env_file:
@@ -11,7 +15,7 @@ services:
     build:
       context: .
       args:
-        dev: 1
+        dev: 0
     command: /bin/sh /srv/app/asgi.sh
     volumes:
       - ./app/:/srv/app
@@ -26,3 +30,10 @@ services:
       - redis
     env_file:
       - env/prod.env
+
+
+volumes:
+    app:
+    channels:
+    postgres:
+    redis: