Commit 01fd68ed authored by David's avatar David

This works.

parent f5949dac
...@@ -2,12 +2,15 @@ version: '3.1' ...@@ -2,12 +2,15 @@ version: '3.1'
services: services:
nginx: nginx:
depends_on:
- wordpress
image: nginx:latest image: nginx:latest
restart: always
ports: ports:
- '8080:80' - '8080:80'
volumes: volumes:
- ./nginx:/etc/nginx/conf.d - ./nginx.conf:/etc/nginx/conf.d/default.conf
- ./logs/nginx:/var/log/nginx - ./logs:/var/log/nginx
- ./wordpress:/var/www/html - ./wordpress:/var/www/html
networks: networks:
- wp_net - wp_net
...@@ -18,6 +21,7 @@ services: ...@@ -18,6 +21,7 @@ services:
restart: always restart: always
volumes: volumes:
- ./wordpress:/var/www/html - ./wordpress:/var/www/html
- ./php-uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
environment: environment:
WORDPRESS_DB_HOST: db:3306 WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: wordpress WORDPRESS_DB_USER: wordpress
......
server {
listen 80;
root /var/www/html;
index index.php;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
#
# Allow larger file uploads
#
client_max_body_size 64M;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass wordpress:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}
\ No newline at end of file
#
# Allow larger file uploads
#
file_uploads = On
memory_limit = 64M
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 600
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment