]> code.citadel.org Git - citadel-docker.git/blobdiff - run-citadel.sh
Revived this old project to run Citadel in a Docker container. It uses 'ctdlvisor...
[citadel-docker.git] / run-citadel.sh
index fa2e60fa7b886bdbb85be6aa60f728931fd764ea..486a2e4a277fc22df95ea47b35c065f45b57cf8f 100755 (executable)
@@ -1,9 +1,26 @@
 #!/bin/bash
 
+# This is a simple startup script to run Citadel in a Docker container.
+# If you know your way around Docker, you don't have to use it; feel free to do whatever you want.
+# The container expects a persistent volume called "citadel-data" in which it will keep everything.
+# The remainder of the container is ephermal and can be deleted at any time.
+
 docker run \
        --name citadel \
-       -v citadel-data:/usr/local/citadel/data \
-       -v citadel-files:/usr/local/citadel/files \
-       -v citadel-keys:/usr/local/citadel/keys \
-       -d \
-       $1
+       -it \
+       --rm \
+       -p 25:25 \
+       -p 80:80 \
+       -p 110:110 \
+       -p 119:119 \
+       -p 143:143 \
+       -p 443:443 \
+       -p 465:465 \
+       -p 504:504 \
+       -p 563:563 \
+       -p 587:587 \
+       -p 993:993 \
+       -p 995:995 \
+       -p 5222:5222 \
+       --mount type=bind,source=/root/citadel/citadel,target=/citadel-data \
+       $*