first commit
This commit is contained in:
commit
62ea575b75
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
mariadb
|
||||
www
|
24
docker-compose.yml
Normal file
24
docker-compose.yml
Normal 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
14
php/Dockerfile
Normal 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
1947
php/php.ini
Normal file
File diff suppressed because it is too large
Load Diff
8
reset.sh
Normal file
8
reset.sh
Normal file
@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
docker compose down
|
||||
rm -rf ./www ./mariadb
|
||||
mkdir www
|
||||
chown -R 33:33 ./www
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user