about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-10-06 22:23:09 +0200
committerEmile <hanemile@protonmail.com>2019-10-06 22:23:09 +0200
commit4444639dcb256b2928abc5f1e925f2529797c1f1 (patch)
tree0b9c74d4b97e7a76e0ef14f138bca8340ecadbc0
parentd1e96565645314363b458a3e2767da80af6687f0 (diff)
added some text on what actually should be done
-rw-r--r--README.md31
1 files changed, 31 insertions, 0 deletions
diff --git a/README.md b/README.md
index 3fc87d3..6078a19 100644
--- a/README.md
+++ b/README.md
@@ -7,3 +7,34 @@ Register a new companion
 This container should only show a small registration form for the user.  The user
 inputs a name and recieves an access token and a link to a companion container.
 
+All this contains does is run this command with a few custom values:
+
+```
+$ docker run \
+    --net circus \
+    -v /var/run/docker.sock:/var/run/docker.sock \
+    -v $(pwd)/companion.json:/etc/companion.json \
+    -p 8086:8080 \
+    -d circus-companion:latest \
+    -username "Player 1" \
+    -accessCode theoneandonlyplayeroneisready \
+    -sessionSalt salty \
+    -vpnRemoteAddress 127.0.0.1 \
+    -vpnRemotePort 1193
+```
+
+What this command does:
+
+- starts a circus companion
+- inserts the companion into the circus network
+- mounts the docker socket
+- mounts the companion.json seeding the challenges
+- exposes port 8080 to the outside world 
+- defines the name of the player
+- defines the access-token the player can use to login
+- defines a salt for the session
+- defines where the remote vpn is running
+- defines behind which port the vpn can be found
+
+That's a lot, but all we need to do is to get a name for the user, generate a
+random access code, start the container and return the access code to the user.