Commit 50a815dc authored by Michael Iseard's avatar Michael Iseard
Browse files

Add php uploads config

parent 7fb54efe
......@@ -21,13 +21,13 @@ services:
- traefik.docker.network=web
- traefik.http.routers.${CONTAINER_PREFIX}-adminer.rule=Host(`${ADMINER_HOST}`)
- traefik.http.routers.${CONTAINER_PREFIX}-adminer.tls.certresolver=cloudflare
- traefik.http.routers.${CONTAINER_PREFIX}-adminer.entrypoints=websecure
- traefik.http.routers.${CONTAINER_PREFIX}-adminer.entrypoints=web-secure
yarn:
image: node:10-alpine
container_name: ${CONTAINER_PREFIX}-yarn
volumes:
- ./wordpress/wp-content/themes/:/app
- ./wordpress/wp-content/themes/wisselenergie-theme/:/app
working_dir: /app
command: ["yarn"]
......@@ -35,7 +35,7 @@ services:
image: composer:1.9.0
container_name: ${CONTAINER_PREFIX}-composer
volumes:
- ./wordpress/wp-content/themes/:/app
- ./wordpress/wp-content/themes/wisselenergie-theme/:/app
depends_on:
- wordpress
......@@ -51,6 +51,7 @@ services:
- mysql
volumes:
- ${WORDPRESS_DIR:-./wordpress}:/var/www/html/
- ${PHP_UPLOADS:-./php/uploads.ini}:/usr/local/etc/php/conf.d/uploads.ini
environment:
- WORDPRESS_DB_NAME=${MYSQL_DATABASE:-wordpress}
- WORDPRESS_TABLE_PREFIX=${WORDPRESS_TABLE_PREFIX:-wp_}
......@@ -76,10 +77,10 @@ services:
labels:
- traefik.enable=${TRAEFIK_ENABLE:-true}
- traefik.docker.network=web
- traefik.http.routers.${CONTAINER_PREFIX}.rule=Host(`${HOST}`)
- traefik.http.routers.${CONTAINER_PREFIX}.rule=Host(`${HOST}`, `www.${HOST}`)
- traefik.http.routers.${CONTAINER_PREFIX}.tls.certresolver=cloudflare
- traefik.http.services.${CONTAINER_PREFIX}.loadbalancer.server.port=80
- traefik.http.routers.${CONTAINER_PREFIX}.entrypoints=websecure
- traefik.http.routers.${CONTAINER_PREFIX}.entrypoints=web-secure
mysql:
image: mariadb:${MARIADB_VERSION:-latest}
......
......@@ -6,6 +6,6 @@ server {
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
include snippets/wordpress.conf;
}
file_uploads = On
memory_limit = 64M
upload_max_filesize = 8M
post_max_size = 8M
max_execution_time = 600
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