create.sh: chmod, create_docker_container.sh: name container and ports

This commit is contained in:
Alice Gaudon 2019-10-25 22:33:23 +02:00
parent 1a51f3426d
commit 506ed33f90
2 changed files with 2 additions and 2 deletions

0
caddy_docker_custom_user/create.sh Normal file → Executable file
View File

View File

@ -5,12 +5,12 @@ then
echo "Usage: <script> <container_id>" echo "Usage: <script> <container_id>"
else else
CONTAINER_ID=$1 CONTAINER_ID=$1
docker run -d --restart always \ docker run --name caddy -d --restart always \
-v /home/website/caddy/caddy.conf:/etc/Caddyfile \ -v /home/website/caddy/caddy.conf:/etc/Caddyfile \
-v /home/website/.caddy:/root/.caddy \ -v /home/website/.caddy:/root/.caddy \
-v /home/arisu/rtmp:/home/arisu/rtmp \ -v /home/arisu/rtmp:/home/arisu/rtmp \
-v /home/website:/home/website \ -v /home/website:/home/website \
-p 80:80 -p 443:443 -p 2015:2015 \ -p 80:80 -p 443:443 -p 2015:2015 -p 4889:4889 -p 4887:4887 \
-e ACME_AGREE=true \ -e ACME_AGREE=true \
$CONTAINER_ID $CONTAINER_ID
fi fi