Initial commit: Add Docker setup, database schema, and basic PHP application structure
This commit is contained in:
12
apache/Dockerfile
Normal file
12
apache/Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
||||
FROM php:8.2-apache
|
||||
|
||||
# Apache Rewrite aktivieren
|
||||
RUN a2enmod rewrite
|
||||
|
||||
# PHP-Extensions für MariaDB
|
||||
RUN docker-php-ext-install pdo pdo_mysql
|
||||
|
||||
# VHost kopieren
|
||||
COPY vhost.conf /etc/apache2/sites-available/000-default.conf
|
||||
|
||||
WORKDIR /var/www/html
|
||||
12
apache/vhost.conf
Normal file
12
apache/vhost.conf
Normal file
@@ -0,0 +1,12 @@
|
||||
<VirtualHost *:80>
|
||||
ServerAdmin webmaster@localhost
|
||||
DocumentRoot /var/www/html
|
||||
|
||||
<Directory /var/www/html>
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||
</VirtualHost>
|
||||
Reference in New Issue
Block a user