Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Add aio-docker helper scripts for local testing (#1493)

Leendert de Borste2fbadadf523
diff --git a/scripts/start-aio-docker-image.sh b/scripts/start-aio-docker-image.sh
new file mode 100755
index 000000000..49021a6f0
--- /dev/null
+++ b/scripts/start-aio-docker-image.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+
+# Go to root
+cd ..
+
+# Build the all-in-one docker image
+echo "Building all-in-one docker image..."
+docker build \
+ -f dockerfiles/all-in-one/Dockerfile \
+ -t aliasvault-allinone:local \
+ .
+
+# Stop the all-in-one docker container if it is running
+docker stop aliasvault && docker rm aliasvault
+
+# Run the all-in-one docker container
+echo "Running all-in-one docker container..."
+docker run -d \
+ --name aliasvault \
+ -p 80:80 \
+ -v ./database:/database \
+ -v ./logs:/logs \
+ -v ./secrets:/secrets \
+ aliasvault-allinone:local
+
+ # Go back to scripts
+ cd scripts
\ No newline at end of file
diff --git a/scripts/stop-aio-docker-image.sh b/scripts/stop-aio-docker-image.sh
new file mode 100755
index 000000000..3f4c4b935
--- /dev/null
+++ b/scripts/stop-aio-docker-image.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+# Stop the all-in-one docker container
+docker stop aliasvault
\ No newline at end of file