From fa00b957378a393f8edbfc98ef111d35d18ecb09 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 24 Sep 2023 13:40:25 +0200 Subject: initial commit --- docker/nginx/Dockerfile | 3 +++ docker/nginx/default.conf.template | 19 +++++++++++++++++++ docker/php/Dockerfile | 7 +++++++ 3 files changed, 29 insertions(+) create mode 100644 docker/nginx/Dockerfile create mode 100644 docker/nginx/default.conf.template create mode 100644 docker/php/Dockerfile (limited to 'docker') diff --git a/docker/nginx/Dockerfile b/docker/nginx/Dockerfile new file mode 100644 index 0000000..cad37d9 --- /dev/null +++ b/docker/nginx/Dockerfile @@ -0,0 +1,3 @@ +FROM nginx:alpine + +ADD default.conf.template /etc/nginx/templates/ diff --git a/docker/nginx/default.conf.template b/docker/nginx/default.conf.template new file mode 100644 index 0000000..e8b82cd --- /dev/null +++ b/docker/nginx/default.conf.template @@ -0,0 +1,19 @@ +server { + listen 0.0.0.0:80; + + root /var/www/html/public; + index index.php; + + location / { + try_files $uri $uri/ /index.php?$args; + } + + location ~ \.php$ { + include fastcgi_params; + + fastcgi_pass app:9000; + + fastcgi_index index.php; + fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name; + } +} diff --git a/docker/php/Dockerfile b/docker/php/Dockerfile new file mode 100644 index 0000000..204d790 --- /dev/null +++ b/docker/php/Dockerfile @@ -0,0 +1,7 @@ +FROM php:fpm-alpine + +RUN : \ + && apk add libpq-dev icu-dev icu-data-full \ + && docker-php-ext-install pdo_pgsql intl + +WORKDIR /var/www/html -- cgit v1.2.3