]> git.parisson.com Git - teleforma.git/commitdiff
add recovery composition
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Mon, 22 Nov 2021 10:22:30 +0000 (11:22 +0100)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Mon, 22 Nov 2021 10:22:30 +0000 (11:22 +0100)
env/recovery.yml [new file with mode: 0644]

diff --git a/env/recovery.yml b/env/recovery.yml
new file mode 100644 (file)
index 0000000..777ba36
--- /dev/null
@@ -0,0 +1,72 @@
+version: '3'
+
+services:
+  app:
+    build:
+      context: .
+      args:
+        dev: 0
+    command: /bin/sh /srv/app/wsgi.sh
+    restart: unless-stopped
+    env_file:
+      - env/prod.env
+    volumes:
+      - /mnt/crfpa-videos:/mnt/crfpa-videos
+      - /mnt/crfpa-scripts:/mnt/crfpa-scripts
+    ports:
+      - "9005:8000"
+    networks:
+      - teleforma-recovery
+  
+  channels:
+    build:
+      context: .
+      args:
+        dev: 0
+    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
+    ports:
+      - "9006:8000"
+    env_file:
+      - env/prod.env
+    networks:
+      - teleforma-recovery
+    links:
+      - db:db
+      - redis
+      - memcached
+    depends_on:
+      - db
+      - redis
+      - memcached
+
+  db:
+    env_file:
+      - env/prod.env
+    networks:
+      - teleforma-recovery
+
+  redis:
+    networks:
+      - teleforma-recovery
+
+  memcached:
+    networks:
+      - teleforma-recovery
+
+
+volumes:
+    app:
+    channels:
+    db:
+    redis:
+
+
+networks:
+  teleforma-recovery:
+    driver: bridge