docker-compose for development

This commit is contained in:
2022-09-20 20:08:43 +02:00
parent 1101f34164
commit ae0b27a1bf
183 changed files with 2260 additions and 19 deletions

View File

@@ -0,0 +1,20 @@
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"