diff --git a/homelab/README.md b/homelab/README.md new file mode 100644 index 0000000..63906ea --- /dev/null +++ b/homelab/README.md @@ -0,0 +1 @@ +# Docker Compose recipes \ No newline at end of file diff --git a/homelab/docker-compose.yml b/homelab/docker-compose.yml new file mode 100644 index 0000000..7249499 --- /dev/null +++ b/homelab/docker-compose.yml @@ -0,0 +1,2 @@ +version: "2" + diff --git a/homelab/mediawiki/Caddyfile b/homelab/mediawiki/Caddyfile new file mode 100644 index 0000000..d7dcb4b --- /dev/null +++ b/homelab/mediawiki/Caddyfile @@ -0,0 +1,13 @@ +{ + # Enable FrankenPHP + frankenphp + admin off +} + +http://stellapent-cier.fawn-cod.ts.net https://stellapent-cier.local { + root /app/public + # Enable compression (optional) + encode zstd br gzip + # Execute PHP files in the current directory and serve assets + php_server +} \ No newline at end of file diff --git a/homelab/mediawiki/Dockerfile b/homelab/mediawiki/Dockerfile new file mode 100644 index 0000000..0b430c2 --- /dev/null +++ b/homelab/mediawiki/Dockerfile @@ -0,0 +1,27 @@ +FROM mau.dev/andreijiroh-dev/dependency_proxy/containers/dunglas/frankenphp:alpine + +RUN install-php-extensions \ + dom \ + intl \ + mbstring \ + xml \ + xmlreader \ + apcu \ + curl \ + pdo_mysql \ + mysqli + +# Be sure to replace "your-domain-name.example.com" by your domain name +ENV SERVER_NAME=localhost +# If you want to disable HTTPS, use this value instead: +#ENV SERVER_NAME=:80 + +# Enable PHP production settings +#RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" + +# Copy the PHP files of your project in the public directory +COPY mediawiki /app/public +# If you use Symfony or Laravel, you need to copy the whole project instead: +#COPY . /app + +COPY Caddyfile /etc/caddy/Caddyfile \ No newline at end of file