Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michael Iseard
Wordpress Docker
Commits
50a815dc
Commit
50a815dc
authored
Jun 09, 2020
by
Michael Iseard
Browse files
Add php uploads config
parent
7fb54efe
Changes
3
Hide whitespace changes
Inline
Side-by-side
docker-compose.yml
View file @
50a815dc
...
...
@@ -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}
...
...
nginx/conf.d/default.conf
View file @
50a815dc
...
...
@@ -6,6 +6,6 @@ server {
access_log
/
var
/
log
/
nginx
/
access
.
log
;
error_log
/
var
/
log
/
nginx
/
error
.
log
;
include
snippets
/
wordpress
.
conf
;
}
php/uploads.ini
0 → 100644
View file @
50a815dc
file_uploads
=
On
memory_limit
=
64M
upload_max_filesize
=
8M
post_max_size
=
8M
max_execution_time
=
600
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment