first commit

This commit is contained in:
Mans Ziesel 2023-07-25 09:56:30 +02:00
commit 62ea575b75
6 changed files with 2002 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
mariadb
www

24
docker-compose.yml Normal file
View File

@ -0,0 +1,24 @@
services:
php:
build:
context: ./php
dockerfile: ./Dockerfile
ports:
- 80:80
volumes:
- ./www:/var/www/html/
- ./php/php.ini:/usr/local/etc/phps/php.ini
mariadb:
image: mariadb
volumes:
- ./mariadb/data:/var/lib/mysql
- ./mariadb/init.sql:/data/application/init.sql
environment:
MYSQL_ROOT_HOSTS: '%'
MYSQL_ROOT_USER: root
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: joomla
MYSQL_USER: dbusr
MYSQL_PASSWORD: root
ports:
- 3306:3306

14
php/Dockerfile Normal file
View File

@ -0,0 +1,14 @@
FROM php:8.0-apache
COPY php.ini /usr/local/etc/php/php.ini
RUN apt-get update && apt-get install -y \
libfreetype-dev \
libjpeg62-turbo-dev \
libpng-dev \
libzip-dev \
&& docker-php-ext-install mysqli \
&& docker-php-ext-install zip \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j$(nproc) gd
RUN a2enmod rewrite && service apache2 restart

1947
php/php.ini Normal file

File diff suppressed because it is too large Load Diff

8
reset.sh Normal file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
docker compose down
rm -rf ./www ./mariadb
mkdir www
chown -R 33:33 ./www

7
start.sh Normal file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
docker compose down
chown -R 33:33 ./www
docker compose up -d