From 8cc748de94371b35364659b00c0a795f6540dfcd Mon Sep 17 00:00:00 2001
From: Patrick Jentsch <p.jentsch@uni-bielefeld.de>
Date: Thu, 19 Nov 2020 15:20:49 +0100
Subject: [PATCH] add stuff to enable instance scaling

---
 README.md                | 8 +++++++-
 docker-compose.scale.yml | 6 ++++++
 2 files changed, 13 insertions(+), 1 deletion(-)
 create mode 100644 docker-compose.scale.yml

diff --git a/README.md b/README.md
index 8c233226..f991459a 100644
--- a/README.md
+++ b/README.md
@@ -56,6 +56,12 @@ username@hostname:~$ docker-compose build
 ``` bash
 # Create log files
 touch nopaque.log nopaqued.log
-# For background execution add the -d flag and to scale the app, add --scale web=<NUM-INSTANCES>
+# For background execution add the -d flag
 username@hostname:~$ docker-compose up
+# To scale your app use
+username@hostname:~$ docker-compose -f docker-compose.yml \
+                                    -f docker-compose.override.yml
+                                    -f docker-compose.scale.yml
+                                    up
+                                    -d --no-recreate --scale nopaque=<NUM_INSTANCES>
 ```
diff --git a/docker-compose.scale.yml b/docker-compose.scale.yml
new file mode 100644
index 00000000..f13b3550
--- /dev/null
+++ b/docker-compose.scale.yml
@@ -0,0 +1,6 @@
+version: "3.5"
+
+services:
+  nopaque:
+    environment:
+      - NOPAQUE_DAEMON_ENABLED=False
-- 
GitLab