#!/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 \
+ $*