Docker image with php, pear, xdiff, pagespeed, apache and certbot. Based on ubuntu:bionic
964
Docker image with php, pear, xdiff, pagespeed, apache and certbot. Based on ubuntu:bionic
Docker hub : monkeycompany/cebus
Github project : monkey-company/cebus
monkeycompany/cebus:latestmonkeycompany/cebus:testingmonkeycompany/cebus:nginxmonkeycompany/cebus:nginx-testingmonkeycompany/cebus:mtmonkeycompany/cebus:mt-testingmonkeycompany/cebus:mt-nginxmonkeycompany/cebus:mt-nginx-testingTemplate : monkeycompany/cebus:[BUILD]-[VERSION]
monkeycompany/cebus:std-1.2.3monkeycompany/cebus:mt-nginx-1.0.2localhost domain for let's encryptadmin@localhost email for let's encryptEurope/Paris timezone/etc/apache2/file.sh additionnal script for cron or otherfalse install google pagespeed module apachere2c additionnal dependenciescache,rewrite,ssl,headers apache2 modulesautoindex apache2 disable modulesbcmath,bz2,intl,gd,mbstring,mysql,zip php modulesxdiff pear packages/etc/letsencrypt//etc/apache2//etc/php//var/www/html/80443Run the docker run -d --restart=unless-stopped -p 80:80 -p 443:443 -v ${PWD}/path/letsencrypt-conf/:/etc/letsencrypt/ -v ${PWD}/path/apache-conf/:/etc/apache2/ -v ${PWD}/path/php-conf/:/etc/apache2/ -v ${PWD}/path/www/:/var/www/html/ -e DOMAINS='example.com' -e EMAIL='[email protected]' monkeycompany/cebus:latest command.
Create a docker-compose.yml file or import yaml in Rancher.
cebus:
image: monkeycompany/cebus:latest
ports:
- '80:80'
- '443:443'
environment:
DOMAINS: 'example.com'
EMAIL: '[email protected]'
PAGESPEED: 'true'
LIBMOD: 're2c'
APAMOD: 'cache,rewrite,ssl,headers'
APDMOD: 'autoindex'
PHPMOD: 'bcmath,bz2,intl,gd,mbstring,mysql,zip'
PEAMOD: 'xdiff'
volumes:
- ${PWD}/path/letsencrypt-conf/:/etc/letsencrypt/
- ${PWD}/path/apache-conf/:/etc/apache2/
- ${PWD}/path/php-conf/:/etc/php/
- ${PWD}/path/www/:/var/www/html/
Run the docker-compose up command in the same directory.
Run the certbot --apache --non-interactive --agree-tos --email $EMAIL --domains $DOMAINS certonly command in the container.
If you use Kubernetes or Rancher, regenerate all the containers to apply the configurations in volumes.
If you need cron or additionnal commands, use the variable SHFILE for define a path and make script file :)
Content type
Image
Digest
Size
167.6 MB
Last updated
over 7 years ago
docker pull monkeycompany/cebus