From 887be23588ceec4b0d871a404f3386c56c72adff Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Fri, 17 Dec 2021 12:08:38 +0200 Subject: [PATCH] Switch to our nginx image, drop nginx.conf Closes #18 --- docker-compose.yml | 4 +--- nginx.conf | 48 ---------------------------------------------- 2 files changed, 1 insertion(+), 51 deletions(-) delete mode 100644 nginx.conf diff --git a/docker-compose.yml b/docker-compose.yml index 0280b93..87699e8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,18 +3,16 @@ version: '3.1' services: web: - image: nginx:alpine + image: "thecoopcloud/nginx:1.21.4-bedrock" working_dir: /app ports: - "80:80" volumes: - - ./nginx.conf:/etc/nginx/conf.d/default.conf:cached - ./src:/app:cached php: image: "thecoopcloud/wordpress:5.8.2-php7.4-fpm-bedrock" working_dir: /app - user: 1000:1000 volumes: - ./src:/app:cached diff --git a/nginx.conf b/nginx.conf deleted file mode 100644 index 40442dd..0000000 --- a/nginx.conf +++ /dev/null @@ -1,48 +0,0 @@ -server { - listen 80 default_server; - listen [::]:80 default_server; - - server_name _; - - client_max_body_size 128M; - - gzip on; - gzip_proxied any; - gzip_types text/plain text/xml text/css application/x-javascript; - gzip_vary on; - gzip_disable "MSIE [1-6]\.(?!.*SV1)"; - - sendfile on; - sendfile_max_chunk 512k; - - root /app/web; - - access_log off; - - location / { - include /etc/nginx/mime.types; - - root /app/web; - index index.html index.htm index.php; - - try_files $uri $uri/ /index.php?q=$uri&$args; - } - - location ~ .php$ { - include fastcgi.conf; - - fastcgi_read_timeout 300; - fastcgi_pass php:9000; - - fastcgi_index index.php; - fastcgi_param SCRIPT_FILENAME /app/web/$fastcgi_script_name; - fastcgi_param PATH_INFO $fastcgi_script_name; - - fastcgi_param PHP_VALUE "error_log=/var/log/nginx/application_php_errors.log"; - fastcgi_buffers 16 16k; - fastcgi_buffer_size 32k; - - include fastcgi_params; - } -} -