diff --git a/setup.sh b/setup.sh
index 08d113c..1929f85 100755
--- a/setup.sh
+++ b/setup.sh
@@ -15,10 +15,11 @@ fi
 
 # Generate configuration
 echo "Generating configuration with domain: $DOMAIN..."
-docker compose run --rm \
-  -e SYNAPSE_SERVER_NAME="$DOMAIN" \
+docker run -it --rm \                                                                                           ✔   22s
+  -v $(pwd)/config/synapse:/data \
+  -e SYNAPSE_SERVER_NAME= "$DOMAIN" \
   -e SYNAPSE_REPORT_STATS=no \
-  synapse generate
+  matrixdotorg/synapse:latest generate
 
 # Generate and display the registration shared secret
 SHARED_SECRET=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 50)