]> git.parisson.com Git - teleforma.git/commitdiff
add channels and redis containers
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Thu, 9 Nov 2023 10:57:54 +0000 (11:57 +0100)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Thu, 9 Nov 2023 10:57:54 +0000 (11:57 +0100)
docker-compose.yml

index 783b7a363137ea7b8112fdf1c3b08c024c568241..5c002efc87647a7e5d34c253492113540fe7233d 100644 (file)
@@ -46,7 +46,36 @@ services:
           - -m 1024
           - -I 128m
           - -v
+  redis:
+    image: redis
+    entrypoint:
+      - redis-server
+      - --appendonly yes
+    volumes:
+      - ./var/redis:/data
+
+  channels:
+    build:
+      context: .
+      args:
+        dev: 1
+    command: /bin/sh /srv/app/asgi.sh
+    volumes:
+      - ./app/:/srv/app
+      - ./bin:/srv/bin
+      - ./lib:/srv/lib
+      - ./teleforma/:/srv/src/teleforma/teleforma
+      - ./var/log/app:/var/log/app
+      - ./var/run/app:/var/run/app
+    links:
+      - db
+      - redis
+    env_file:
+      - env/debug.env
+
 
 volumes:
     app:
     db:
+    channels:
+