Sign inSign up

44934045/alpine-apache_php

By 44934045

Updated 5 months ago

Image
0

1.3K

44934045/alpine-apache_php repository overview

Apache2 + PHP 8.3 on Linux Alpine = Super SMALL
Pre-installed packages: php83-mbstring php83-intl php83-pdo_mysql php83-mysqli php83-session mysql-client

Docker Compose suggestion:

name: alpine-apache_php
services:
    apache-php_web:
        image: 44934045/alpine-apache_php
        networks:
            - lamp-net
        volumes:
            - ./html:/var/www/html ##Bind your html folder
        ports:
            - "8081:80"
        depends_on:
            - lamp_db

    lamp_db:
        image: mariadb:lts #You still need a database server
        networks:
            - lamp-net
        volumes:
            - lamp-db:/var/lib/mysql
            - ./init.sql:/docker-entrypoint-initdb.d/init.sql
        environment:
            MARIADB_ROOT_PASSWORD: ROOT_PASSWORD
            MARIADB_DATABASE: db_name
            MARIADB_USER: username
            MARIADB_PASSWORD: USER_PASSWORD
            MARIADB_ROOT_HOST: "%"
            TZ: America/Sao_Paulo #Welcome to BraSil!

volumes:
    lamp-db:
    
networks:
    lamp-net:
       enable_ipv6: true

Tag summary

Content type

Image

Digest

sha256:ec9103946

Size

40.5 MB

Last updated

5 months ago

docker pull 44934045/alpine-apache_php