fitness-web/docker/fitness/service/apache2/start.sh

21 lines
441 B
Bash

docker volume create apache || true
docker run \
--rm \
-it \
-d \
-v apache:/var/www \
-v $(pwd)/etc/apache2:/etc/apache2 \
-v $(pwd)/etc/cron.d:/etc/cron.d \
-v $(pwd)/etc/letsencrypt:/etc/letsencrypt \
--name apache \
-p 80:80 \
-p 443:443 \
apache
echo "Start certbot manually to always renew ssl"
echo "https://certbot.eff.org/lets-encrypt/ubuntubionic-apache"
echo "certbot --apache"
echo "sudo certbot renew --dry-run"