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:
1
data/www/phpinfo.php
Normal file
1
data/www/phpinfo.php
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<?php phpinfo(); ?>
|
||||||
30
docker-compose.yml
Normal file
30
docker-compose.yml
Normal 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
20
php81-apache/Dockerfile
Normal 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"]
|
||||||
2
php81-apache/conf.d/zz_post_max_size.ini
Normal file
2
php81-apache/conf.d/zz_post_max_size.ini
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
post_max_size = 16M;
|
||||||
|
|
||||||
2
php81-apache/conf.d/zz_upload_max_filesize.ini
Normal file
2
php81-apache/conf.d/zz_upload_max_filesize.ini
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
upload_max_filesize = 16M;
|
||||||
|
|
||||||
Reference in New Issue
Block a user