Revived this old project to run Citadel in a Docker container. It uses 'ctdlvisor...
[citadel-docker.git] / run-citadel.sh
index f021bf5e52e8f7099a06dd41ab79cf10f9a1f8a7..486a2e4a277fc22df95ea47b35c065f45b57cf8f 100755 (executable)
@@ -1,7 +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:/citadel-data \
-       -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 \
+       $*