HUB
Sign inSign up

moduleart/php-apache-certbot

By moduleart

•Updated about 2 months ago

Web server for Laravel with EFF let's encrypt certificate generator

Image
Web servers
0

915

moduleart/php-apache-certbot repository overview

Hello !

I built this image to use Laravel php framework.

Php extension gd enabled.

apache2 modules enabled : rewrite, ssl, proxy, proxy_http, proxy_html, headers.

File upload limit to 32M.

It works well with this docker-compose.yml :


services:

  mariadb:
    restart: always
    image: mariadb:10.7
    volumes:
      - ~/mariadb:/var/lib/mysql
    ports:
      - "3306:3306"
    environment:
      - MARIADB_ROOT_PASSWORD=StrongPassWord

  myadmin:
    restart: always
    image: phpmyadmin:5.2.0-apache
    ports:
      - "8080:80"
    links:
      - mariadb:db
    environment:
      UPLOAD_LIMIT: 300M


  web-server:
    restart: always
    image: moduleart/php-apache-certbot
    network_mode: host
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - yourPath/apache2/sites-available:/etc/apache2/sites-available
      - yourPath/apache2/sites-enabled:/etc/apache2/sites-enabled
      - yourPathToLaravelApp:/var/www/html
      - yourPath/letsencrypt:/etc/letsencrypt

You can easily generate certificate in the running container with :

certbot --apache
Tag summary
Recent tags
Content type
Image
Digest
sha256:9c364221d…
Size
250.7 MB
Last updated
about 2 months ago
docker pull moduleart/php-apache-certbot:8.3-bookworm-amd64