X-Git-Url: https://code.citadel.org/?p=citadel-docker.git;a=blobdiff_plain;f=run-citadel.sh;fp=run-citadel.sh;h=486a2e4a277fc22df95ea47b35c065f45b57cf8f;hp=f021bf5e52e8f7099a06dd41ab79cf10f9a1f8a7;hb=8bf0b0986137cdbd091b89fc74fba597acca8f47;hpb=2e8ed5d4963ca9cc2d86e70024543eabb99b238f diff --git a/run-citadel.sh b/run-citadel.sh index f021bf5..486a2e4 100755 --- a/run-citadel.sh +++ b/run-citadel.sh @@ -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 \ + $*