X-Git-Url: https://code.citadel.org/?p=citadel-docker.git;a=blobdiff_plain;f=run-citadel.sh;fp=run-citadel.sh;h=41192966c46c0873758afe33425787e06aa55efa;hp=486a2e4a277fc22df95ea47b35c065f45b57cf8f;hb=fda5b37d1404c736c457952aaf22115cf412b317;hpb=8bf0b0986137cdbd091b89fc74fba597acca8f47 diff --git a/run-citadel.sh b/run-citadel.sh index 486a2e4..4119296 100755 --- a/run-citadel.sh +++ b/run-citadel.sh @@ -5,22 +5,18 @@ # 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 \ +exec docker run \ --name citadel \ -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 \ + --network host \ --mount type=bind,source=/root/citadel/citadel,target=/citadel-data \ $* + +# Explanation of the above options: +# +# --name citadel Create a container named "citadel" +# -it Run in the foreground +# --rm Delete the container when it exits +# --network host Bind directly to the host's network ports instead of creating a separate interface +# --mount This identifies where on the host our persistent Citadel database is found