Browse Source

Initial commit, seems to work

master
Christoph Haas 8 months ago
parent
commit
401d070778
7 changed files with 179 additions and 0 deletions
  1. 57
    0
      .env.sample
  2. 2
    0
      .gitignore
  3. 49
    0
      docker-compose.yml
  4. 3
    0
      docker/php/Dockerfile
  5. 3
    0
      nginx/conf.d/default.conf
  6. 32
    0
      nginx/nginx.conf
  7. 33
    0
      nginx/sites/default.conf

+ 57
- 0
.env.sample
File diff suppressed because it is too large
View File


+ 2
- 0
.gitignore View File

@@ -5,3 +5,5 @@
!.vscode/launch.json
!.vscode/extensions.json

# ---> Production Config File
.env

+ 49
- 0
docker-compose.yml
File diff suppressed because it is too large
View File


+ 3
- 0
docker/php/Dockerfile View File

@@ -0,0 +1,3 @@
FROM php:7-fpm

RUN docker-php-ext-install pdo_mysql

+ 3
- 0
nginx/conf.d/default.conf View File

@@ -0,0 +1,3 @@
upstream php-upstream {
server php-fpm:9000;
}

+ 32
- 0
nginx/nginx.conf View File

@@ -0,0 +1,32 @@
user nginx;
worker_processes 4;

error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;


events {
worker_connections 1024;
}


http {
include /etc/nginx/mime.types;
default_type application/octet-stream;

log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';

access_log /var/log/nginx/access.log main;

sendfile on;
#tcp_nopush on;

keepalive_timeout 65;

#gzip on;

include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*.conf;
}

+ 33
- 0
nginx/sites/default.conf View File

@@ -0,0 +1,33 @@
server {
listen 80 default_server;
listen [::]:80 default_server;

server_name localhost;
root /var/www;
index index.php index.html index.htm;

location / {
try_files $uri $uri/ /index.php$is_args$args;
}

location ~ \.php$ {
try_files $uri /index.php =404;
fastcgi_pass php-upstream;
fastcgi_index index.php;
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
#fixes timeouts
fastcgi_read_timeout 600;
include fastcgi_params;
}

location ~ /\.ht {
deny all;
}

location /.well-known/acme-challenge/ {
root /var/www/letsencrypt/;
log_not_found off;
}
}

Loading…
Cancel
Save