Initial commit.

Changes to be committed:
	new file:   data/www/phpinfo.php
	new file:   docker-compose.yml
	new file:   php81-apache/Dockerfile
	new file:   php81-apache/conf.d/zz_post_max_size.ini
	new file:   php81-apache/conf.d/zz_upload_max_filesize.ini
This commit is contained in:
Christoph Lampe
2023-02-18 18:06:02 +01:00
parent 91e8ef26ab
commit 59e28dff7d
5 changed files with 55 additions and 0 deletions

1
data/www/phpinfo.php Normal file
View File

@@ -0,0 +1 @@
<?php phpinfo(); ?>

30
docker-compose.yml Normal file
View File

@@ -0,0 +1,30 @@
version: "3"
services:
apache:
build:
dockerfile: Dockerfile
context: ./php81-apache
image: cla-php:8.1-apache
restart: always
networks:
- proxy
volumes:
- ./data/www:/var/www/html
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
# ports:
# - "80:80"
labels:
- traefik.enable=true
- traefik.http.routers.advanto-wiki.rule=Host(`advanto.lampe.systems`)
- traefik.http.routers.advanto-wiki.tls.certResolver=le
- traefik.http.routers.advanto-wiki.service=advanto-wiki
- traefik.http.services.advanto-wiki.loadbalancer.server.port=80
- traefik.docker.network=proxy
networks:
proxy:
external: true

20
php81-apache/Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM php:8.1-apache
RUN apt-get update && \
apt-get install libc-client-dev libzip-dev \
zlib1g-dev libicu-dev libpng-dev -y
RUN docker-php-ext-install zip intl gd
RUN docker-php-ext-enable zip intl gd opcache
RUN apt-get purge libc-client-dev libzip-dev \
zlib1g-dev libicu-dev libpng-dev -y \
&& apt-get clean \
&& rm -r /var/lib/apt/lists/*
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
COPY conf.d/* $PHP_INI_DIR/conf.d/
CMD ["apache2-foreground"]

View File

@@ -0,0 +1,2 @@
post_max_size = 16M;

View File

@@ -0,0 +1,2 @@
upload_max_filesize = 16M;